Creating multiple files with header based on data

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
Roopanwita
Participant
Posts: 125
Joined: Mon Sep 11, 2006 4:22 am
Location: India

Creating multiple files with header based on data

Post by Roopanwita »

Hi,

I was trying to create N no of files from a files (where N is no of records in file).
Below post was very useful:
viewtopic.php?t=133224

I was successfully able to create N no of files , but those files didn't have header.

Is there a way to add header to the files in datastage other than adding header at beginning of file in Unix.

Thank you in Advance.

Thanks,
Roopanwita
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Although it's still using the operating system (or a routine), you can write the header in a before-job subroutine then, in the job, append to the file.
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