multiple output files

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
pavan_test
Premium Member
Premium Member
Posts: 263
Joined: Fri Sep 23, 2005 6:49 am

multiple output files

Post by pavan_test »

Hello,

can anyone please suggest me how do I create output files with multiple record types using px

Thanks
Mark
girija
Participant
Posts: 89
Joined: Fri Mar 24, 2006 1:51 pm
Location: Hartford

Post by girija »

"Multiple Rewcord Type" is dyanamic or fixed?
pavan_test
Premium Member
Premium Member
Posts: 263
Joined: Fri Sep 23, 2005 6:49 am

multiple output files

Post by pavan_test »

It is fixed.
girija
Participant
Posts: 89
Joined: Fri Mar 24, 2006 1:51 pm
Location: Hartford

Post by girija »

Separate them by using Transformer and create file accordingly.
pavan_test
Premium Member
Premium Member
Posts: 263
Joined: Fri Sep 23, 2005 6:49 am

multiple output files

Post by pavan_test »

Thank You.

For now I need 10 output files. In future if I my client needs 100 files then my design becomes cumbersome.

Is there a way to perform this dynamically.

Thanks
Mark
girija
Participant
Posts: 89
Joined: Fri Mar 24, 2006 1:51 pm
Location: Hartford

Post by girija »

We did it using custom build stage (or you can try by buildop stage). I don't think anything available in data stage for dynamic file generator.
pavan_test
Premium Member
Premium Member
Posts: 263
Joined: Fri Sep 23, 2005 6:49 am

multiple output files

Post by pavan_test »

Thank You.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

I would introduce a staging table in the middle with two columns, first record identifier and the second, rest of the row. This way it will be dynamic. You can enter records into the table from multiple sources and then pass a select and extract the contents into a file. This way you can have n sources and a single output.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply