Search found 62 matches

by kumar444
Tue Jun 28, 2011 9:50 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle CASE statement in Datastage
Replies: 23
Views: 20185

You can use a BASIC Transformer stage in a parallel job. To determine whether the value in InLink.code is in a particular range you can use Oconv(InLink.code, "R700,709;800,849;860,867;870,876;880,899") This will return the original value if code falls in any of those ranges, or "&qu...
by kumar444
Tue Jun 28, 2011 9:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle CASE statement in Datastage
Replies: 23
Views: 20185

The syntax is almost identical to what you already have, you basically replace the "CASE WHEN" with "IF". You'll need to change the NVL and IN verbs to DataStage equivalents, of course. And disregard the 'nested' part in this case, you just need one big one if-then-else. Is this...
by kumar444
Tue Jun 28, 2011 9:01 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Not in or not between condition:
Replies: 11
Views: 7465

Thanks for your inputs.
Sorry i have posted the actual requirement here in this link below.

viewtopic.php?t=140904
by kumar444
Tue Jun 28, 2011 8:44 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle CASE statement in Datastage
Replies: 23
Views: 20185

Thanks Chulett. But i have three columns AND 'ed above.
How can i use a nested if -then -else construct?
Did you mean to say if then else with stage variables?

Ray, How can i include three columns in your statement above?
by kumar444
Tue Jun 28, 2011 12:46 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle CASE statement in Datastage
Replies: 23
Views: 20185

Hi Pandeesh , there is an AND condition between three columns. If all of the three columns together satisfy the above codes, then reject Else pass.


Thanks Ray. I couldnt see your content for now. I just bought a membership, have to wait until it reflects..
by kumar444
Mon Jun 27, 2011 6:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle CASE statement in Datastage
Replies: 23
Views: 20185

Thanks Ray ,
I am using a parallel job here. Please tell me how to do this in parallel.
Datatypes are varchar for all. Data volume less than 10000 rows.
by kumar444
Mon Jun 27, 2011 4:08 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Oracle CASE statement in Datastage
Replies: 23
Views: 20185

Oracle CASE statement in Datastage

I have this case statement to be implemented in datastage: CASE WHEN ((NVL(a.code,'0') IN ('0','00','000')) OR (a.code BETWEEN '700' AND '709') OR (a.code BETWEEN '800' AND '849') OR (a.code BETWEEN '860' AND '867') OR (a.code BETWEEN '870' AND '876') OR (a.code BETWEEN '880' AND '899') ) AND ((NVL(...
by kumar444
Sun Jun 26, 2011 1:16 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Not in or not between condition:
Replies: 11
Views: 7465

I have values coming as above in three different columns. condition is something like column 1 column 2 column 3. 4 26 85 ------------>reject 00 4 null -------------->reject 3 26 85 --------------->pass If any of those values mentioned in the actual post satisfy the above condition i should reject t...
by kumar444
Sun Jun 26, 2011 1:06 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Capture record count and send it to the table.
Replies: 2
Views: 1289

I dont have any run identifier in the job. I do use load and append option for the rows. BTW sorry for the late response.
by kumar444
Thu Jun 23, 2011 1:33 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Not in or not between condition:
Replies: 11
Views: 7465

Not in or not between condition:

I have a requirement. I need to exclude the ranges and values like below in datastage.
4-10
25-30
80-300
00
null

Any suggestions would be appreciated.


Thanks
by kumar444
Thu Jun 23, 2011 10:31 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Not equal to condition in lookup
Replies: 7
Views: 3160

Thanks much Jwiles.
by kumar444
Thu Jun 23, 2011 9:50 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Capture record count and send it to the table.
Replies: 2
Views: 1289

Capture record count and send it to the table.

I need to capture inserted ( to the Oracle EE stage as target) record count
after the job is finished and send it to the other table (oracle).
With using sequence or if possible without using sequence job.

Please help me with a suggestion.



Thanks,
by kumar444
Thu Jun 23, 2011 9:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Not equal to condition in lookup
Replies: 7
Views: 3160

Thanks Ray and Sura.

I have used two methods.

1) lookup (Reject option)

2) Outer join and filter


What do i do with main stream coming out of the lookup ? I have no use with it. Can i send it to copy stage as a target ?
by kumar444
Wed Jun 22, 2011 7:38 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Not equal to condition in lookup
Replies: 7
Views: 3160

Thanks Sura.

Did you mean to say-----

using full outer join in join stage
and filter where b.casenum and b.regno are null in transformer stage.
This is good idea.

How about in lookup?
by kumar444
Wed Jun 22, 2011 7:15 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Not equal to condition in lookup
Replies: 7
Views: 3160

Not equal to condition in lookup

I need to implement the below condition in lookup or outside of lookup. Assume 'a' and 'b' as two tables. a.casenum<>b.casenum and a.regno<>b.regno In the above case, I also need to know two different scenarios below. 1) Output columns ---> a.casenum and a.regno 2) Output columns ---> b.casenum and ...