Page 1 of 1

Creating multiple files with header based on data

Posted: Mon Jun 10, 2013 10:46 pm
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

Posted: Tue Jun 11, 2013 3:01 am
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.