Page 2 of 2

Re: How to left Justify the record count in trailer record?

PostPosted: Thu May 03, 2018 3:35 am
by Squashman
Just wanted to post a solution for future posters.

I used Frank Yaeger's solution found on the MVSForums
Not sure why I can't get a url to post correct.

Instead of using a the count sub-parameter within the TRAILER parameter, use an INREC statement to create a sequence number. Then an OUTREC statement so that you can justify the sequence number. Then use the sequence number in your TRAILER parameter.

INREC BUILD=(1:SEQNUM,16,FS)                                  
SORT FIELDS=COPY                                              
OUTREC BUILD=(1:1,16,JFY=(SHIFT=LEFT))