The OUTFIL control statement describes the output file(s) and the processing to be done on the output records. OUTFIL processing…