IBM Extension

TITLE Statement

The TITLE statement specifies a title to be printed at the top of each page of the source listing produced during compilation. The title line is printed below the line containing the identification of the compiler and the current release level. The title is left-justified on the title line.

TITLE Statement - Format

Read syntax diagramSkip visual syntax diagramTITLEliteral.
literal
Must be nonnumeric and may be followed by a separator period. Must not be a figurative constant. May be a DBCS literal or national literal.
The TITLE statement:
  • Forces a new page immediately
  • Is not printed on the source listing
  • Has no other effect on compilation
  • Has no effect on program execution.

A title line is produced for each page in the listing produced by the LIST option. This title line uses the last TITLE statement found in the source statements or the default.

The word TITLE may begin in either Area A or Area B.

The TITLE statement may not be continued on another line.

The TITLE statement may appear anywhere in any of the divisions.

No other statement may appear on the same line as the TITLE statement.

End of IBM Extension