Data Transformation

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
ravi123
Participant
Posts: 11
Joined: Thu Mar 27, 2008 11:22 am

Data Transformation

Post by ravi123 »

Hi


I need to convert data below information


input

col1, col2

st 3
et 5
ct 2

output

col1,col2
st 1
st 2
st 3
et 1
et 2
et 3
et 4
et 5
ct 1
ct 2

Can you please give me the suggestion

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

Post by chulett »

Suggest you spell out your data transformation rules rather than expect everyone to divine them from your example.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Nagaraj
Premium Member
Premium Member
Posts: 383
Joined: Thu Nov 08, 2007 12:32 am
Location: Bangalore

Post by Nagaraj »

You can do this by defining stage variables which will look for the change in the first column and one stage variables which will value as you have mentioned.
jdmiceli
Premium Member
Premium Member
Posts: 309
Joined: Wed Feb 22, 2006 10:03 am
Location: Urbandale, IA

Post by jdmiceli »

Looking at your input, this does not seem like a data transformation as much as setting an upper limit with an assumed 1 as the starting point. As Craig pointed out, is there more to it? What are your business requirements?
Bestest!

John Miceli
System Specialist, MCP, MCDBA
Berkley Technology Services


"Good Morning. This is God. I will be handling all your problems today. I will not need your help. So have a great day!"
Post Reply