Search found 6797 matches

by DSguru2B
Mon May 23, 2011 2:41 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Ustring to string
Replies: 9
Views: 6625

Is your incoming date format mm-dd-yyyy without any leading or trailing spaces?
by DSguru2B
Fri May 20, 2011 11:53 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to Delete duplicated records
Replies: 7
Views: 4056

Is that the complete data you are working with? Three columns? If yes then group by on eid and name and take the max date.
by DSguru2B
Fri May 20, 2011 7:21 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: String to Date fatal error
Replies: 12
Views: 5355

If TrimLeadingTrailing(lnk_user_dataset.ENROLL_DT) = '0000-00-00' Or TrimLeadingTrailing(lnk_user_dataset.ENROLL_DT) = '' Then StringToDate('0001-01-01',"%yyyy-%mm-%dd") Else StringToDate(lnk_user_dataset.ENROLL_DT,"%yyyy-%mm-%dd") I dont see you substring'ing the first 10 chara...
by DSguru2B
Fri May 20, 2011 7:20 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: String to Date fatal error
Replies: 12
Views: 5355

chulett wrote:I thought (from other posts here) that DB2 wanted dates in internal format.
Thats true for server. For px it has to be a date.
by DSguru2B
Thu May 19, 2011 12:44 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: String to Date fatal error
Replies: 12
Views: 5355

Take the first 10 characters from you input data and grind it through the StringToDate() function.
For input anomalies like '0000-00-00', get the business rule and apply accordingly.
by DSguru2B
Thu May 19, 2011 9:30 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: String to Date fatal error
Replies: 12
Views: 5355

Do you want it converted into Date or timestamp?
by DSguru2B
Thu May 19, 2011 9:29 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Pivot job aborted with errors
Replies: 6
Views: 4472

Dump the hashed file into a text file and pivot that. See if the error persists.
by DSguru2B
Wed May 18, 2011 10:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DS job logic needed
Replies: 9
Views: 4951

You are looking for a full outer join between the two. Look at this topic
viewtopic.php?t=124978&highlight=full+o ... join+stage
by DSguru2B
Wed May 18, 2011 8:45 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Extracting attachment from email
Replies: 2
Views: 1938

Instead of continuing to accept requests via email, create a shared folder, ask folks to drop off the files there, create an ftp script to get the data onto your server and then run your process.
by DSguru2B
Mon May 16, 2011 3:40 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Aggregator performance
Replies: 7
Views: 3692

I dont think its the machine. It may be the data variance between the two environments.
by DSguru2B
Mon May 16, 2011 3:21 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Aggregator performance
Replies: 7
Views: 3692

Either order by in your source stage or, explicitly using the sort stage. Then feed that into the aggregator. The input tab of the aggregator lets you state what fields are sorted and in what order. Sort on the fields that are used in the aggregator as group by.
by DSguru2B
Mon May 16, 2011 3:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Aggregator performance
Replies: 7
Views: 3692

Sort the data on the grouping keys, inform the aggregator of the the sorted data.
by DSguru2B
Fri May 13, 2011 7:12 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading huge file into multiple files..
Replies: 8
Views: 2908

Do not substring to get the second column. use a field function. or perhaps a shell script.
by DSguru2B
Wed May 11, 2011 8:12 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: data stage job running more time.
Replies: 13
Views: 11002

A lot of factors can play into database deletes. The tables primary key may be foreign keys in several different tables. It has to go check for the existence of child before actually deleting the record. Then depending upon the constraint definition, it may be delete cascade or do nothing. If this i...
by DSguru2B
Fri May 06, 2011 2:23 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Can .txt file contain null value?
Replies: 10
Views: 8919

My rule of thumb is, if I am working with an external FLAT file and I have to do null checks, I perform isnull() and len(trim()) < 1.