Column generator with reject condition

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
lkganta
Participant
Posts: 21
Joined: Wed Feb 08, 2006 4:10 pm

Column generator with reject condition

Post by lkganta »

I have created a job 7.5 Px with column generator stage for adding new column C20 to the main stream.
But I need to assign a default value "0" to the newly added column.
After that I have lookup stage with reject consition, can I pass some value to the new column C20(from lookup stage), If good then "1", if reject "-1".

Thank you for your help in advance.
kogads
Premium Member
Premium Member
Posts: 74
Joined: Fri Jun 05, 2009 5:36 pm

Post by kogads »

I don't think you can assign user defined values in look up stage.
lkganta
Participant
Posts: 21
Joined: Wed Feb 08, 2006 4:10 pm

Post by lkganta »

Hi, My question is "Can I send my input to output as below fashion in the lookup stage then ?

Input stream ----> Lookup Stage----> Link1 and Link2(Reject)

Link1
---------
Matched Records (I have to set one column from reference as "1") + Reject records (I have set one column from reference as "0")

Link2
----------
Reject Records (I have to set one column from reference as "0")

Thank you,
mallikharjuna
Participant
Posts: 81
Joined: Thu Nov 30, 2006 7:46 am
Location: india

Post by mallikharjuna »

below is the job design,you have to use one more transformer stage

Input stream ----> Lookup Stage----->Transformer stage------> Link1 and Link2(Reject)
MALLI
Post Reply