Posted: Fri Jun 13, 2008 9:27 am Post subject: Merge header from one file to another
I have 2 FBA files (LRECL=134) one with header and one without header. I have a requiremnt to copy ONLY the header from one file to another at the begining of each page.
File1: (with header): Each page begins with following header (same header for all pages)
REPORT : XXXXX-XXX DEPT:XX
.
.
File2: (no header): Each page (1st record) has the following format
PAGE: 0001 - XXXXX XXXXXX
.
.
The resultant file shoud be,
File2:
REPORT : XXXXX-XXX DEPT:XX
PAGE: 0001 - XXXXX XXXXXX
.
.
.
I tried FILEMGR but did not get the expected result. Could you advise me.
Thank you. The above JCL works perfect. But i need all the 134 bytes of the header (STEP0100) in the temp file. At present STEP0100 SORTOUT dataset has LRECl=80. I changed the SYSIN to 134:X instead 80:X then the STEP0200 failed. Just lost! Please guide me.
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Mon Jun 16, 2008 11:25 am Post subject:
ssanthosh,
You got an error because the SYMNAMES DD is supposed to be 80 bytes and FB recfm. if you need the 134 bytes header we need to split it into small chunks. Change your step0100 control cards for the following
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum