How can we achieve this?

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
mohanraj
Participant
Posts: 48
Joined: Sat Mar 25, 2006 12:40 am
Location: bangalore

How can we achieve this?

Post by mohanraj »

Hi All,

Can anyone please tell me how can we achieve the below result set datastage?

I have a input sequential file with 1000 records. I need 3 output files like this:

1st output file should contain records from 1-30,91-120....

2nd output file should contain records from 31-60,121-150...

3rd output file should contain records from 61-90,151-180....

Please tell me how can we do it in both server and parallel jobs
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Same way. Filter on the row number (@INROWNUM). Force the parallel Transformer stage to execute sequentially - for only 1000 rows it's not worth doing otherwise.
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 »

You can also investigate the use of the Mod() function to base your link filter on.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply