OUTREC control statement is used to reformat (adds, deletes, or reformats fields) each record after they are sorted, merged, or…