Page 1 of 1

Order of processing SYSIN statements.

PostPosted: Mon Oct 20, 2008 4:17 pm
by ranga_subham
Hi,

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                   


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                   


All in all, I would like to know how one knows the order of input statements processed by SORT.

Please explain.

Thanks.

Re: Order of processing SYSIN statements.

PostPosted: Mon Oct 20, 2008 9:01 pm
by Alissa Margulies
It does not matter which order you specify the control cards in the job stream. INREC processing occurs before SORT processing, and then SUM occurs after the SORT. Please refer to Chapter 8 in the SyncSort for z/OS Programmer's Guide for the complete Flow of the Sort.

Re: Order of processing SYSIN statements.

PostPosted: Mon Oct 20, 2008 9:03 pm
by ranga_subham
Thank you very much Alissa........ 8-)