Which control statements be used to reformat the file using DFSORT ?
-
INREC and SORT FIELDS
-
OUTREC and SORT FIELDS
-
Only INREC
-
Only OUTREC
-
Both 1 and 2
-
Both 3 and 4
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.