Search found 6797 matches

by DSguru2B
Thu Feb 22, 2007 2:11 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: routine not working as expected
Replies: 9
Views: 1584

I think the END statements are complete. Three conditions, three END statements. But you are right about checking the first condition twice, no need for that, and hence your code takes over, as always. Ray ji, you rule :wink:
by DSguru2B
Thu Feb 22, 2007 2:00 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with oracle stage
Replies: 8
Views: 1737

You are not binding the variables correctly. We need to look at your query and specially your where predicate.
by DSguru2B
Thu Feb 22, 2007 1:57 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: routine not working as expected
Replies: 9
Views: 1584

Craig, you beat me to it. He is write. You need a nested if then else. If ((Arg1 <> Arg2) And (Index(Arg1, 'NETWORKING_EXCHANGE',1) >= 1)) Then Ans ='SUB' End ELSE If ((Arg1 <> Arg2) And (Index(Arg1, 'NETWORKING_EXCHANGE',1) = 0)) Then ...
by DSguru2B
Thu Feb 22, 2007 1:44 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage AND/OR Transformer Function
Replies: 29
Views: 4685

It should work in a stage variable as well. But it depends upon how many stage variables you are using, the order you define the stage variables etc etc.
Are you still running in parallel though? It wasnt a parallel vs. sequential issue was it?
by DSguru2B
Thu Feb 22, 2007 1:41 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: What is a Sparse Lookup in DataStage EE?
Replies: 15
Views: 35201

As for the why and when, refer here.
by DSguru2B
Thu Feb 22, 2007 1:29 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Validation
Replies: 9
Views: 1133

Very funny ganesh123. Thats not called re-invention. Thats called enhancement. :wink:
by DSguru2B
Thu Feb 22, 2007 1:21 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage AND/OR Transformer Function
Replies: 29
Views: 4685

Really, thats strange. Where are you giving the derivation, in a stage variable???
Run in sequential mode just for testing purposes and see if the result persists.
by DSguru2B
Thu Feb 22, 2007 1:11 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Validation
Replies: 9
Views: 1133

No routine is required in this case. This scenario can be handled perfectly and Krazykoolrohit gave a demo on that.
If your absolutely have to use a routine, then go for narasimha's suggestion. No need to re-invent the wheel.
My 2 centy!
by DSguru2B
Thu Feb 22, 2007 12:54 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage AND/OR Transformer Function
Replies: 29
Views: 4685

It sets the value to null by using SetNull() if nothing is found. IF you want something else then you need to replace SetNull() in my code with whatever you want to populate.
by DSguru2B
Thu Feb 22, 2007 11:47 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage AND/OR Transformer Function
Replies: 29
Views: 4685

Thats why I specified in my previous post that it can get him started, but should not be considered as the final solution.
by DSguru2B
Thu Feb 22, 2007 11:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Modify Stage AND/OR Transformer Function
Replies: 29
Views: 4685

See if this works for you: If (INDEX(in.Col, "L", 1) > 0) THEN Field(in.Col," ", Count(in.Col[1,INDEX(in.Col,"L",1)]," "),2)[1,INDEX(in.Col,"L",1)] ELSE IF (INDEX(in.Col, "cc", 1) ...
by DSguru2B
Thu Feb 22, 2007 11:09 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to convert records based on certian contents of records
Replies: 8
Views: 1957

Re: How to convert records based on certian contents of reco

If data is like 12345$ABC6789 then populate data as 12345A6789 if data is like 12$BCD3456789 the populate data as 12B3456789 if data is like 1234567$CDE89 the populate data as 1234567C89. Look at your final data. It contains the first alphabet right after the $ sign. Thats what the substring is for.
by DSguru2B
Thu Feb 22, 2007 10:47 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Get 'Rows Per Transaction' of OCI output link from MetaData
Replies: 4
Views: 978

I did not get that. You mean you want to put the filter in the sql select itself? If yes then get the max id of your target table and pass that as a job parameter to the where predicate of the sql select.
by DSguru2B
Thu Feb 22, 2007 10:45 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DataStage Security
Replies: 6
Views: 1406

THere is a document that Craig provided in a post over at developersnet. You can request Craig to send the document to you.
by DSguru2B
Thu Feb 22, 2007 10:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: After-job subroutine does not work
Replies: 19
Views: 3586

I was missing a 'then' after the if statement. I fixed my original code.