Search found 42189 matches

by chulett
Wed Dec 24, 2008 9:19 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to empty a HASH file?
Replies: 12
Views: 3533

Have to? No, you can simply 'Clear' the hashed file as well.
by chulett
Wed Dec 24, 2008 9:02 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date Conversion formats
Replies: 44
Views: 10058

I guess so. Post your latest derivation.
by chulett
Wed Dec 24, 2008 8:59 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to minus one day from a give timestamp data
Replies: 9
Views: 3398

Data format? Does the timestamp need to be converted? If not, simply cat it back on the end of the converted date.
by chulett
Wed Dec 24, 2008 8:53 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date Conversion formats
Replies: 44
Views: 10058

Just like I posted. Field() can do the parsing for you here. And since your time format is different than you originally posted, you'll need to convert that as well using "MTS".
by chulett
Tue Dec 23, 2008 3:15 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date Conversion formats
Replies: 44
Views: 10058

Field needs a space as the second (delimiter) argument, so " " not "". And as I posted, it's "A3" not "3A" for a three letter month name.
by chulett
Tue Dec 23, 2008 2:57 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date Conversion formats
Replies: 44
Views: 10058

Right. You need to 'convert' the date portion only and you can't include that time mask in the output conversion. So split into two, convert date, stick time back on.
by chulett
Tue Dec 23, 2008 2:35 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date Conversion formats
Replies: 44
Views: 10058

Close. Build a small 'test' routine in the Manager to check. Try:

Code: Select all

OCONV(ICONV(Field(DSLink2.CreateDate," ",1,1),"D"),"D-DMY[2,A3,2]") : Field(DSLink2.CreateDate," ",2,1)
Basically, split off the time and then stick it back on the converted date.
by chulett
Tue Dec 23, 2008 2:32 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: oracle table load
Replies: 1
Views: 726

I would do all of this work in a hashed file and, after everything has been sorted out and the final version is known, then source from the hashed file and do the actual database work. Lookup up from and write to a single hashed file from the same transformer and don't cache the lookup stage. Way qu...
by chulett
Tue Dec 23, 2008 10:05 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: read field value from output file
Replies: 7
Views: 1661

Or do everything at the command line. :wink: In other words, there's no need for a script and especially not two of them. Rather than send one of the fields to another file and then cat that, simply use the Execute Command stage to 'cat' the contents of the file and then pipe the results to 'cut' to...
by chulett
Tue Dec 23, 2008 9:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: CRC32/Checksum
Replies: 11
Views: 3827

mdbatra wrote:
chulett wrote:You are talking about CRC32, not BASIC transformers in Parallel jobs, yes? I seem to recall some of the odd issues you had with it... ...
Yes Craig, i am just asking about how to use CRC32 in a parallel job, but without using a basic transformer.
That question was actually to Kim.
by chulett
Tue Dec 23, 2008 9:15 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to pad leading zero to string
Replies: 2
Views: 2610

Basically the same technique with a different function:

Code: Select all

Right("0000000000" : link.col, 10)
:wink:
by chulett
Tue Dec 23, 2008 9:10 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: read field value from output file
Replies: 7
Views: 1661

Yes, perfectly safe. They're all really just strings when you get down to it.
by chulett
Tue Dec 23, 2008 9:07 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Cannot view full Log Detail for SQL *Loader
Replies: 7
Views: 2658

As I said, you'd need to ask the people that wrote the product and that ain't us. Open a case with your official support provider and let us know what they say.