Page Headers and Trailers

Page headers and trailers are printed automatically on each new page. Default headers and trailers can be created, which are automatically invoked on each new page without requiring or allowing any input data. No input record data is allowed in a default header or trailer because they are triggered automatically by page ejects and are not associated with any records in the input data file. See LAYOUT Command (Record Format) for additional details.

Rather than using the defaults, you can create headers and trailers that are invoked by a Data Record containing the header or trailer Record ID. These headers and trailers can use input record data in their layout; however, it is not required.

The following example creates a page header and trailer. See PAGEDEF Command for additional details.

Sample Page Header and Trailer

LAYOUT C'statmid'
  SEGMENT ibmlog  1.15 in 1.35 in
   PAGEHEADER NEWPAGE
   POSITION SAME ABSOLUTE NEXT;

LAYOUT C'pgenum' PAGETRAILER
   POSITION SAME ABSOLUTE 10.7 in;