Row Splitter vs Transformer with FIELD function

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
psluser
Premium Member
Premium Member
Posts: 39
Joined: Tue Apr 22, 2008 7:00 am
Location: Pune, India

Row Splitter vs Transformer with FIELD function

Post by psluser »

hi,

When should we use row splitter vs a transformer with field functions to get individual columns within a string.
My requirement is to convert four columns below to:
"2121,A,B","A,B,Y","3213,2231,AC",21

to 8 columns, splitting column 2 and column 3 above:

"2121,A,B",A,B,Y,3213,2231,AC,21
Should I use two row splitters, one for column2 and second for column3 or one transformer with field functions? Though I have shown above that both columns are to be split into 3 columns each, its different for different jobs varying from 3 to 14. That is in some of my jobs second column is to be split into 14fields.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

My preference would be one Transformer 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 »

I've never had a need for the Row Splitter stage. My preference would be the same as Ray's.
-craig

"You can never have too many knives" -- Logan Nine Fingers
psluser
Premium Member
Premium Member
Posts: 39
Joined: Tue Apr 22, 2008 7:00 am
Location: Pune, India

Post by psluser »

Any specific reasons? :?:
ag_ram
Premium Member
Premium Member
Posts: 524
Joined: Wed Feb 28, 2007 3:51 am

Post by ag_ram »

What if the Row splitting column is only one?

I also have same question- any specific reason?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Well... for me, it's a personal preference, so no.
-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 »

When it's only one (which was not the original question, by the way), there will not be much to choose from in terms of number of stages in the job. My personal preference is guided by the relative newness of the Row Splitter stage; the Transformer has been around a lot longer and has had a better chance of having had all the bugs ironed out of it.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ag_ram
Premium Member
Premium Member
Posts: 524
Joined: Wed Feb 28, 2007 3:51 am

Post by ag_ram »

Thanks chulett and ray.wurlod for sharing your personal preference.
Post Reply