tansformer logic in transformer for Data stage 7.5

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
thirupathireddy.gankidi
Participant
Posts: 19
Joined: Mon Aug 08, 2011 3:20 am

tansformer logic in transformer for Data stage 7.5

Post by thirupathireddy.gankidi »

Hi All,

I have a scenario like this,

source is coming like,

id , Dept , value
----------- --------- ------
|10|13|15| , abc , 15



Desired output is,

id , Dept , value
----------- --------- ------
10 , abc , 15
13 , abc , 15
15 , abc , 15


Can anyone please explain the transformer loop logic for Datastage 7.5

Thanks in advance

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

Post by chulett »

There is no 'loop logic' in 7.5, you'll need at least 8.5 for that. Search here for horizontal pivot for thoughts on how to handle your issue.
-craig

"You can never have too many knives" -- Logan Nine Fingers
thirupathireddy.gankidi
Participant
Posts: 19
Joined: Mon Aug 08, 2011 3:20 am

Post by thirupathireddy.gankidi »

can you please tell me the logic in 8.5?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Count the number of delimiters, set that number as your counter in the loop and duplicate the rest with a new line character between your rows.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply