Identifying a program
IDENTIFICATION DIVISION to name
a program and optionally provide other identifying information.
can use the optional
DATE-COMPILED paragraphs for descriptive information
about a program. The data you enter in the
is replaced with the latest compilation date.
Author. A. Programmer.
Installation. Computing Laboratories.
PROGRAM-ID paragraph to name your program. The
program-name that you assign is used in these ways:
- Other programs use that name to call your program.
- The name appears in the header on each page, except the first, of the program listing that is generated when you compile the program.
- If you use the
NAMEcompiler option, the name is placed on the
NAMEbinder (linkage-editor) control statement to identify the object module that the compilation creates.Tip: Do not use program-names that start with prefixes used by IBM® products. If you use program-names that start with any of the following prefixes, your
CALLstatements might resolve to IBM library or compiler routines rather than to your intended program:
option is in effect.
Changing the header of a source listing
Identifying a program as recursive
Marking a program as callable by containing programs
Setting a program to an initial state