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

Need a logic to implement in Datastage

Post by thirupathireddy.gankidi »

my input is like :

C1 C2
--- ------
123 ABC;DEF;GEH

Output :


C1 C2 C3 C4
--- ------ ----- --------
123 ABC DEF GEH


Thanks in advance
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

first you need to let us know if the number of columns on which the data of C2 needs to divided, is fixed.

And ; is the delimiter on which it needs to be divided. Use of some plain English words to describe the situation will also help.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
thirupathireddy.gankidi
Participant
Posts: 19
Joined: Mon Aug 08, 2011 3:20 am

Post by thirupathireddy.gankidi »

yes, ';' is the delimiter to divide the column and also C2 is not fixed length.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:idea: Please do not come here and simply post input and output examples and ask for "logic to implement". Explain to us in words what your requirements are, what needs to be done to turn the input data into the output data. Ideally, also add what you've tried so far and what issues you have had trying to get that to work.

We're here to help people and are obviously happy to do so but we're not a service where you drop off your work then come back and pick it up later. So please help us help you by providing the above information.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I'd also be curious what exact 8.x version of DataStage you are running.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Looks like a task for a Column Import stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Except for the "C2 is not fixed length" part... I was thinking that Transformer Looping might be the way to go, hence the version question.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

One could use a Column Import stage with sufficient target columns.

There's no convenient way to use looping to populate an arbitrary number of target columns unless, again, you have at least sufficient target columns.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
thirupathireddy.gankidi
Participant
Posts: 19
Joined: Mon Aug 08, 2011 3:20 am

Post by thirupathireddy.gankidi »

I am using DataStage 8.7 version...
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In which case all of the above advice is apposite.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply