Multiple choice technology mainframe

How should the SORT statement be used to copy only 10 records with the EMP name 'Anil' to the o/p file, where the Emp name is in the 1st 10 chars of the i/p file?

  1. SORT FIELDS = (1,10,CH,A),SKIPREC= 10

  2. SORT FILEDS = (1,10,CH,A),SIZE = 10

  3. Sort FIELDS = (1,10,CH,A),STOPAFT = 10

  4. Sort FIELDS = (1,10,CH,A),EQUALS = 10

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

STOPAFT=10 in SORT stops processing after 10 records are written to output. It copies only the first 10 matching records. SKIPREC skips input records (not output limiting), SIZE and EQUALS aren't standard options for this purpose. The typo 'Sort' vs 'SORT' in option C is irrelevant.