Transposing in Datastage

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
dsoupaty
Premium Member
Premium Member
Posts: 5
Joined: Thu Jun 03, 2010 10:11 am

Transposing in Datastage

Post by dsoupaty »

Hello

I have a requirement where i have the data as below

Col col2 col3 col4 col5
12345 ABC INR INR 1000
12346 ABC USD USD 1000

I need the output as below

Col col2 col3 col4 col5
12345 ABC INR USD 1000
12346 ABC USD INR 1000


appreciate your help

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Spell out your requirements in words rather than simply post before and after pictures. This not only helps us but could very well help you as well.
-craig

"You can never have too many knives" -- Logan Nine Fingers
dsoupaty
Premium Member
Premium Member
Posts: 5
Joined: Thu Jun 03, 2010 10:11 am

Post by dsoupaty »

Sorry Chulett

I have 2 records in the group and group is determined by col5 ( ASSET_ID) and col2 (SEC_CD) combination.

Col3 and col4 are ASST_CRRNCY and LOCAL_CRRNCY. in the group of records ( 2 records) the ASST and LOCAL Crrncy will be the same in each row from source.

The output that i need to generate for that group must have col4 ( LOCAL_CRRNCY) flipped.( i.e USD instead of INR for LOCAL_CRRNCY and INR instead of USD for LOCAL_CRRNCY)

I hope i made my self clear

Thanks
Post Reply