> -----Original Message-----
> From: IBM Mainframe Discussion List On Behalf Of Gerry Palmer
> 
> Frank et al,
> 
> I'm running a simple DFSORT job in which I want to extract an ID
> number from the first record in a file. I'm using STARTREC=1,ENDREC=1
> to do that. But DFSORT insists on reading the entire input file even
> despite the ENDREC value.  This happens for values other than
ENDREC=1, too.
> 
> Is there any way to convince DFSORT not to bother reading the rest of
> the input once the ENDREC value has been exceeded?
> 
> RECORDS - IN: 214563, OUT: 214563
> SORTOUT  : DELETED = 214562, REPORT = 0, DATA = 1
> SORTOUT  : TOTAL IN = 214563, TOTAL OUT = 1
> END OF DFSORT
> BLOCKSET     COPY  TECHNIQUE SELECTED
> VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS,
> - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 00:55
>      SORT   FIELDS=COPY

Have you tried SORT FIELDS=COPY,STOPAFT=1 ?

    -jc-

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to