Header Trailer using SYNCSORT – JCL
Header and trailer records are a common requirement in mainframe reporting, especially when you want to present a clean business report instead of raw input records. In SYNCSORT, you typically use OUTFIL with HEADER1, HEADER2, TRAILER1, and TRAILER2 to generate report titles, page headings, summary lines, counts, and totals. HEADER DETAILS Headers are used to provide a report, page, and section headings

