Multiple choice technology mainframe

Which control statements be used to reformat the file using DFSORT ?

  1. INREC and SORT FIELDS

  2. OUTREC and SORT FIELDS

  3. Only INREC

  4. Only OUTREC

  5. Both 1 and 2

  6. Both 3 and 4

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

DFSORM uses INREC for input reformatting before sorting and OUTREC for output reformatting after sorting. When combined with SORT FIELDS, these control statements can completely restructure a file format. INREC processes records before they're sorted, while OUTREC processes them after. Using both gives maximum flexibility in file reformatting.