I have a sort card which looks like this.
OPTION COPY
OUTFIL FNAMES=SYM,REMOVECC,NODETAIL,
BUILD=(80X),
TRAILER1=('DATCT,''',COUNT-1=(EDIT=(TTTTTT)),'''')
OUTFIL FNAMES=T1,
OVERLAY=(35:SEQNUM,8,ZD)
OPTION COPY
INREC IFOUTLEN=34,
IFTHEN=(WHEN=(35,8,ZD,EQ,1),OVERLAY=(9:DATCT))
This is currently writing the record count in the Header starting from 9th position and ending at 14 position. After the record count, it is all SPCAES till the end of the record. Now, the requirement is that i need only 2 SPACES after the record count (Only in the Header record) and the rest should be FILLERS. The LRECL of the file is 34. Also, there is no record type to distinguish between the header and detail records. There is no trailer record too.
Example:
10020811000005
1301081110035887S0463 00002000
2301081110035887S0438 00200510
Thanks for your help!!!