The STOPAFT=n parameter specifies the number of records to be sorted or copied. These will be the first n records after E15, INCLUDE/OMIT and SKIPREC processing, if specified, have completed. If STOPAFT is specified as a PARM option as well as on the SORT control statement, the PARM specification takes precedence.