How to left Justify the record count in trailer record?

Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL
Squashman
Posts: 8
Joined: Mon Aug 11, 2014 10:57 pm
Skillset: SAS
Referer: Google

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

Postby Squashman » Thu May 03, 2018 3:35 am

Just wanted to post a solution for future posters.

I used Frank Yaeger's solution found on the MVSForums
MVSForums
Not sure why I can't get a url to post correct.
http://www.mvsforums.com/helpboards/viewtopic.php?t=7

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.

Code: Select all

INREC BUILD=(1:SEQNUM,16,FS)                                  
SORT FIELDS=COPY                                              
OUTREC BUILD=(1:1,16,JFY=(SHIFT=LEFT))                        
OUTFIL FILES=1,OUTREC=(80X),TRAILER1=(1,16),REMOVECC,NODETAIL


  • Similar Topics
    Replies
    Views
    Last post