Use the ENDREC=n parameter to specify the record number n of the last record to be processed by the OUTFIL specification in effect. All records after the specified record will be ignored for the OUTFIL group. The record number is determined by the sequence of records presented for OUTFIL processing.
If ACCEPT has also been specified, processing will stop when either one has been satisfied.