I would like to know the order of processing of below SYSIN statements.
INREC FIELDS=(5,10,81:SEQNUM,3,ZD)
SORT FIELDS=(5,10,CH,A)
SUM FIELDS=NONE
SORT FIELDS=(5,10,CH,A)
SUM FIELDS=NONE
When I executed the job, it first processed INREC I thought but not sure.
Later I changed the SYSIN statements like below, but got same results !
SORT FIELDS=(5,10,CH,A)
INREC FIELDS=(5,10,81:SEQNUM,3,ZD)
SUM FIELDS=NONE
INREC FIELDS=(5,10,81:SEQNUM,3,ZD)
SUM FIELDS=NONE
All in all, I would like to know how one knows the order of input statements processed by SORT.
Please explain.
Thanks.