Search found 6797 matches

by DSguru2B
Tue Jan 09, 2007 8:20 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Replace a character in a String
Replies: 7
Views: 11585

Now thats neat :wink:
by DSguru2B
Tue Jan 09, 2007 7:59 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Replace a character in a String
Replies: 7
Views: 11585

Nothing out of the box but you could write your own. Something like

Code: Select all

FUNCTION myCharReplace(myString, repChar, Pos)

charToReplace = myString[Pos,1]
Ans=Ereplace(myString, charToReplace, repchar, 1, 1)
by DSguru2B
Tue Jan 09, 2007 7:46 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to retry a failed job automatically
Replies: 5
Views: 1614

Running the job immediately after it failed is not going to do any good. You should consider putting the sequence to sleep for a few minutes and then re-trying. Consider having a routine activity which has something like sec = Arg1 SLEEP sec Ans=1 Let the routine activity connect to your job. Enclos...
by DSguru2B
Tue Jan 09, 2007 7:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: dos2unix - problem while converting
Replies: 13
Views: 20599

Its not a dumb question Brad. It never hit us. The OP can also use

Code: Select all

sed 's/.$//' mydosfile.txt > unixfile.txt
by DSguru2B
Tue Jan 09, 2007 3:31 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Regarding Parameters
Replies: 15
Views: 3220

Yes, that was fixed in 7.5.1A and higher.
by DSguru2B
Tue Jan 09, 2007 3:15 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to supress leading zeros
Replies: 10
Views: 3443

Because the OCI stage (server job) has that option and not the Enterprise stage(px job)
by DSguru2B
Tue Jan 09, 2007 3:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to supress leading zeros
Replies: 10
Views: 3443

User the modify stage to get your conversion done.

Are you using the OCI stage or the Oracle enterprise stage. If the latter then i dont think you have that option.
by DSguru2B
Tue Jan 09, 2007 3:04 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Key Change - Increment Value
Replies: 13
Views: 3031

store it in a stored procedure, I'm . The OP did not specify that the data is being extracted from a db table. I guess you assumed. Hope it's right. Or did I miss something? Whale. What a bummer. I meant stage variable. I was thinking of stored procedure while i was typing out my reply and hence my...
by DSguru2B
Tue Jan 09, 2007 1:56 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Key Change - Increment Value
Replies: 13
Views: 3031

Concatenate the first two columns, store it in a stored procedure, check with incoming, if its same, increment the counter else reset to 1. Search this forum, this has been covered gazillions of times.
by DSguru2B
Tue Jan 09, 2007 1:36 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to supress leading zeros
Replies: 10
Views: 3443

User AsInteger or StringToDecimal() function to convert your character field to integer.

Yes,You can certainly do insert/update in parallel jobs.
by DSguru2B
Tue Jan 09, 2007 1:24 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to check if a column is in valid date format
Replies: 26
Views: 10122

O, the switch over, the switch over, why didnt it hit me, for some reason i thought something was going wrong on my end.
Well Sheema, thats a routine by Ray, so you could request him to make it visible for a day so that it can help you.
by DSguru2B
Tue Jan 09, 2007 11:27 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to check if a column is in valid date format
Replies: 26
Views: 10122

Check again. I made them visible for now. You are 25 posts into your membership. You should really consider becoming a premium member as you get routines written by others and basically solution to your problems in a silver platter.
by DSguru2B
Tue Jan 09, 2007 11:23 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Convert XLS to CSV in UNIX
Replies: 8
Views: 5698

Why not just save the xls sheet as csv and then use it. Who ever is responsible for creating these sheets, request them to send you a csv copy. Usually 'they' dont mind.