Search found 6797 matches

by DSguru2B
Thu Jan 25, 2007 11:55 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: FTPing Multiple Files with Parameters
Replies: 11
Views: 3299

Try this

Code: Select all

ftp << EOF
open %1
%2
%3
cd FAC
get count.txt
quit
EOF
by DSguru2B
Thu Jan 25, 2007 11:43 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Decimal to COMP3
Replies: 18
Views: 7167

You can study the source code for routines like "DataTypePicS9" and do the inverse and create your own routine to achieve the same.
by DSguru2B
Thu Jan 25, 2007 11:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Processing multiple files
Replies: 11
Views: 3374

Use a Start Loop and End Loop in a sequence job. pass the file names as a list to the start loop. Specify #StartLoopName.$Counter# as the derivation for the job parameter. It will take all the file names as a list and pass it to your job. This way your job will process each file individually. If the...
by DSguru2B
Thu Jan 25, 2007 11:36 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: FTPing Multiple Files with Parameters
Replies: 11
Views: 3299

You need to pass it as parameters to your FTPFile. Like FTPFile myServerName userMe passwdMe. Your bat file should accept these. Once you can get your FTPFile running from command line. Then you can edit your Cmd as cmd = 'ftp -s:c:\FTPFile ':myServerName userMe passwdMe where myServerName userMe pa...
by DSguru2B
Thu Jan 25, 2007 11:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Populating A user defined enviroment variable TIMESTAMP Data
Replies: 17
Views: 4192

As in are you going to edit the DSParams file programatically or how are you planning to change the environment variable. And as far as i know, environment variables is limited to string types. As far as i know.
by DSguru2B
Thu Jan 25, 2007 11:00 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Remove duplicate keys
Replies: 14
Views: 3878

You wont be deleting anything. The hashed file will contain only keys which have duplicates in your source file. Then you run your source file again against this hashed file and do a NOT of NOTFOUND for duplicate records and NOTFOUND non duplicate records. No data will be deleted or missed.
by DSguru2B
Thu Jan 25, 2007 10:58 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Populating A user defined enviroment variable TIMESTAMP Data
Replies: 17
Views: 4192

How do you plan to populate this environment variable in the first place?
by DSguru2B
Thu Jan 25, 2007 10:56 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Calling stored procedure.
Replies: 14
Views: 7848

What version of DataStage do you have.? If 7.5x then you must be having STP stage. Use that. If you are expecting return parameters then doing a simple "call stp" from before/after sql tab is out of question. Calling a parameter from odbc stage has its limitations. It can only support IN IN/OUT para...
by DSguru2B
Thu Jan 25, 2007 10:53 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DateTime Metadata Mismatch Warnings
Replies: 17
Views: 10401

I could eliminate my frustration if I just created two separate jobs, and didn't try to reuse existing jobs, but I thought I'd give it a try. I think that could be your only way. I do not see how you can re-use the same job with different meta data for different targets. If the metadata was identic...
by DSguru2B
Thu Jan 25, 2007 10:50 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Remove duplicate keys
Replies: 14
Views: 3878

Do this. Sort the incoming data on your key. Define two stage variables in the transformer, say condFlag and prevVal. The will basically detect duplicates and flag them. Their both will be initialized to 0. Their derivation will be as follows: condFlag | if (prevVal <> src.key) then 'X' else...
by DSguru2B
Thu Jan 25, 2007 10:28 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Error code=-4
Replies: 13
Views: 4666

What have you defined the date parameter as in your job? Is it string? If not change it to string.
by DSguru2B
Thu Jan 25, 2007 10:27 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Calling stored procedure.
Replies: 14
Views: 7848

Well that depends on what the Stored Procedure is doing. Are you retrieving columns from it to load it somewhere or just executing the Stored Procedure that does a few tasks which, from DataStage stand point, your not concerned about?
by DSguru2B
Thu Jan 25, 2007 10:25 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DateTime Metadata Mismatch Warnings
Replies: 17
Views: 10401

A little bit off topic but tell me this, What does this date column represent? Is that the current timestamp ? Or a different datetime value needed from the source?
by DSguru2B
Thu Jan 25, 2007 10:20 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Processing multiple files
Replies: 11
Views: 3374

Did you try looking at Read Method "File Pattern" in the sequential file stage properties?
by DSguru2B
Thu Jan 25, 2007 9:55 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: debugging Batch
Replies: 16
Views: 2751

shrek7577 wrote:OK, the problem is resolved.
The DS manager missed to implement the routines in my project !
:evil:

It sure makes you go arghhhhhhh doesnt it :wink: