CHANGE in OUTREC statement can be used to look up and change the content in the file while sorting. Build…
SEQNUM creates & inserts sequence numbers in the output record. The sequence numbers are assigned in the order in which…