Header and trailer records are a common requirement in mainframe reporting, especially when you want to present a clean business…