How to filter the records

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sujaoschin
Premium Member
Premium Member
Posts: 102
Joined: Tue Jan 31, 2006 4:13 am

How to filter the records

Post by sujaoschin »

input field has field of values "as_location"( VALUES,-SI, FA,FP) and "biseps_Md_ad_id"( 90002, 78582, OTHERS) which has to be lookup with MI_STATUS(VALUES LIKE SI, FA, FP) & MI_AD_ID(Values -90002, 78582, OTHERS)

TFM N logic is 'if Mi_status=fa and mi_ad_id=90002 then 105 to be populated in 'as_location'

TFM N logic is 'if Mi_status=fa and mi_ad_id=78582 then 104 to be populated in 'as_location'

TFM N logic is 'if Mi_status=fa and mi_ad_id<>90002 or <>78852 then reject the records in 'as_location'

How to filter using transformer stage?
Sujatha K
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You 'filter' by using a constraint. And those first two are derivations, while the third is what you would need to adopt for the constraint expression on the transformer's outbound link.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sujaoschin
Premium Member
Premium Member
Posts: 102
Joined: Tue Jan 31, 2006 4:13 am

Post by sujaoschin »

This issue is resolved by writing the if command
Sujatha K
Post Reply