Search found 6797 matches

by DSguru2B
Thu Apr 05, 2007 5:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Timestamp
Replies: 14
Views: 3828

Thats what your doing wrong. CurrentDate() and CurrentTime() will return date and time and not a string. Try something like

Code: Select all

DateToString(CurrentDate()):'T':TimeToString(CurrentTime())
by DSguru2B
Thu Apr 05, 2007 5:08 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Loading the Target
Replies: 13
Views: 3150

Use DIGITS() to extract all numbers from alpha-numeric data and LETTERS() or ALPHA() one of those I believe (cant remember exactly) for alphabets.
by DSguru2B
Thu Apr 05, 2007 3:15 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Timestamp
Replies: 14
Views: 3828

What exactly is not working :?:
by DSguru2B
Thu Apr 05, 2007 1:35 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Timestamp
Replies: 14
Views: 3828

As I suspected, it wont accept T in timestamp. Treat it as varchar.
by DSguru2B
Thu Apr 05, 2007 1:15 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Routine
Replies: 13
Views: 2212

Read about UtilityHashLookup() in DS help. Its a function to read a hashed file.
by DSguru2B
Thu Apr 05, 2007 1:09 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Routine
Replies: 13
Views: 2212

Now you have two ways. The hashed file read, when I said multiple reads, I was pointing towards reading it in the initial value of a stage variable by using UtlityHashLookup(). This way you will read it once in every transformer stage.
by DSguru2B
Thu Apr 05, 2007 1:03 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Routine
Replies: 13
Views: 2212

Its not unnecessary. You need the value right? This is one of the most efficient ways. Load it once and read it multiple times.
by DSguru2B
Thu Apr 05, 2007 12:55 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Routine
Replies: 13
Views: 2212

Ofcourse you can. Load the date with a dummy static key say 'X'. Lookup the value by providing the same key.
by DSguru2B
Thu Apr 05, 2007 12:54 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: @INROWNUM
Replies: 3
Views: 1126

Yes, @INROWNUM is the record's number on link2. Its twin, @OUTROWNUM in trans2 would mean the record number on link3.
by DSguru2B
Thu Apr 05, 2007 12:20 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dynamic file creation based on a value
Replies: 9
Views: 2134

I just re-read the post. You really are on server edition arent you. I missed that part although it was right in my face. :oops:
Go ahead and post some sample data, it might help us come up with a solution.
by DSguru2B
Thu Apr 05, 2007 11:25 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Timestamp
Replies: 14
Views: 3828

You will have to treat it as a varchar else it will not accept it as a timestamp, as far as i know.
by DSguru2B
Thu Apr 05, 2007 11:21 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dynamic file creation based on a value
Replies: 9
Views: 2134

Well it gets shipped with 7.5.2 for windows, so you should already have it installed. Do a cat of any file on your windows command line, does it work? Well thats the way I can think off in which you can sort by stores, do uniq to remove duplicates and then read it one by one, while grepping for the ...
by DSguru2B
Thu Apr 05, 2007 10:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dynamic file creation based on a value
Replies: 9
Views: 2134

Do you have MKS Toolkit installed? It should be as your running px on windows. If you can confirm that then you can do this with a shell script.
by DSguru2B
Thu Apr 05, 2007 10:13 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: PX Create SQL Table and wrapDescribeOperator()
Replies: 1
Views: 1734

I dont know whats going on during the first option of creating the table but with the table replace, do you get the warning everytime or only the first time when the table is not present? If yes, then its just a warning message to tell you that the table does not exist and you can use a message hand...
by DSguru2B
Thu Apr 05, 2007 9:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: File Pattern for Sequential File Stage
Replies: 7
Views: 2978

More specifically, Craig's last reply in this post.