Filtering the records

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
arunkumar1111
Participant
Posts: 19
Joined: Sun Jun 29, 2008 10:19 pm

Filtering the records

Post by arunkumar1111 »

Hi All,

I have a scenario the pull out the records in folllowing order.

For a particular student there will be many records. there is a code column. if the code is 1 pull put all the 1 records, else if code is 2 pull out all the 2 records else pull out all the 3 records

Please can anyone help me with the logic
Thanks and Regards
Arun
Known is a drop and Unknown is an Ocean
mdbatra
Premium Member
Premium Member
Posts: 175
Joined: Wed Oct 22, 2008 10:01 am
Location: City of London

Post by mdbatra »

Are u simply looking for separating the records with code '1' in an output & code '2' in another or all in a single output?

If require diiferent ouput,make constraints either in transformer or Filter(preferably filter) & direct different constraints to different o/p.

If require single output, u can use Boolean expression(again using filter/transformer) & direct all the records satisfying the expression to a single o/p.
Rgds,
MB
Post Reply