Search found 6797 matches

by DSguru2B
Wed Apr 11, 2007 7:32 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sequential processing of Files
Replies: 43
Views: 11926

It wont work. Your job will either fail, or process zero records from file2 if the file is present. Both the streams will fire off simultaneously.
by DSguru2B
Wed Apr 11, 2007 7:25 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to pass coloumn value as a target file name
Replies: 2
Views: 813

Will the file be empty? You can easily do this with a few lines in a shell script.
psuedocode:
-isolate the column using awk
-grep for the value, if found create the file.
by DSguru2B
Wed Apr 11, 2007 7:22 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Calling C program from DataStage Job
Replies: 16
Views: 6469

Please go through the manuals or seriously consider going through training.
by DSguru2B
Wed Apr 11, 2007 7:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sybase stored procedure
Replies: 1
Views: 579

15 in one. Not a good idea. Keep them seperate. If you really want to get fancy, execute them within a script, create 15 flat files that will contain the result of these stored procs. You can then read these file from within datastage. Now that I have explained that, it doesnt seem very fancy anymore.
by DSguru2B
Tue Apr 10, 2007 7:08 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to generate sequence number in Parallel Job
Replies: 8
Views: 2429

Search for it. A lot of posts. One just recently answered.
by DSguru2B
Tue Apr 10, 2007 7:06 pm
Forum: General
Topic: Convert to day of week using date field, like MOn, Tue , Wed
Replies: 4
Views: 1401

:oops: I jumped ahead of myself.
Change the default timestamp as I advised. Use the TimestampToString() function to change to string and then do

Code: Select all

FIELD(date, "-", 2, 1)

This will give you the day :)
by DSguru2B
Tue Apr 10, 2007 4:11 pm
Forum: General
Topic: Convert to day of week using date field, like MOn, Tue , Wed
Replies: 4
Views: 1401

Set the default for timestamps as %yyyy-%mmm-%dd %hh:%nn:%ss.
by DSguru2B
Tue Apr 10, 2007 11:33 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Rejects
Replies: 6
Views: 1651

Please search for it. This has been covered gazillions of times.
by DSguru2B
Tue Apr 10, 2007 10:56 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Rejects
Replies: 6
Views: 1651

You have two ways. One way is to sort on the keys, do the group change dance using stage variables and flag them. Constraint on the flag for both the target database stream and the reject stream. Second way is to load to a hashed file keyed on the two keys. Before loading it reference the same hashe...
by DSguru2B
Tue Apr 10, 2007 10:36 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Exec Command Stage Output
Replies: 9
Views: 2336

Try this as a workaround. Create a small routine that runs your command. FiletoSearchIn=Arg1 CMD = "grep -i 'Totals' ":FiletoSearchIn:" | wc -l" Call DSExecute("UNIX", cmd, output, rtncd) Ans=output<1> Call this routine in routine activity stage, which will repl...
by DSguru2B
Tue Apr 10, 2007 10:25 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Rejects
Replies: 6
Views: 1651

There are several ways. Tell us this, do you want to restrict all key combo that has duplicates or retain one and send the duplicate row down a reject link? If the latter then how are you identifying it as a reject, is it the sort order coming from the flat file?
by DSguru2B
Tue Apr 10, 2007 10:21 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle date formats
Replies: 8
Views: 2820

Did you try pass it as it is? What is the incoming timestamp format?
by DSguru2B
Tue Apr 10, 2007 10:15 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Error
Replies: 3
Views: 883

There has to be other surrounding error messages. Can we get those as well. Also a little background on your job design, what your trying to accomplish , would be nice.
by DSguru2B
Tue Apr 10, 2007 10:08 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Exec Command Stage Output
Replies: 9
Views: 2336

Yea. You are write. I am able to reproduce the error at my end. And yes the hashes seem to be required. What exactly are you doing with the execute command stage? Are you just cat'ing a file?
by DSguru2B
Tue Apr 10, 2007 9:58 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DataStage vs COBOL
Replies: 12
Views: 5590

Not in stores yet, they are all over the place. Ok well I am more like an internet shopper so they are present online.
A Wii person is more like....I dont know, just a Wii person :?