target file

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
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I would split this into 2 steps, the first is creating your data file, and the second adds the header and trailer records. This is easy to do using UNIX commands - namely the cat command to concatenate data streams and the wc -l command to get your line count from the original data file. This one-liner UNIX code could be called as part of an after-job routine or from a sequence.
Post Reply