How to left Justify the record count in trailer record?



Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

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.

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
Squashman
 
Posts: 8
Joined: Mon Aug 11, 2014 10:57 pm
Has thanked: 0 time
Been thanked: 0 time

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

 

Previous

Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post