Multiple choice technology mainframe

How do we resequence a file through the Sort statement where the file record length is 300 bytes and the sequence number is present in the 1st 5 bytes?

  1. SORT FIELDS=(1,5,ZD,A) OUTREC FIELDS=(1:SEQNUM,5,ZD,6:6,295)

  2. SORT FIELDS=(1,5,BI,A) OUTREC FIELDS=(1:SEQNUM,5,BI,6:6,295)

  3. SORT FIELDS=(1,5,ZD,A) OUTREC FIELDS=(1:RESEQ,5,ZD,6:6,300)

  4. None of the above

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

To resequence a file, SEQNUM is used in the OUTREC statement to generate sequence numbers. Specifying 1:SEQNUM,5,ZD places a 5-digit zoned decimal sequence number at the beginning of each record.