The PROGRAM-ID paragraph specifies the name by which the program is known and assigns selected program attributes to that program. It is required and must be the first paragraph in the Identification Division.
Table 7. Formation Rules for Program Names Based on PGMNAME Compiler Option |
||
PGMNAME Setting |
Formation Rules | |
OS/390 and VM | AIX, OS/2, and Windows | |
---|---|---|
PGMNAME (COMPAT) X X X X X X |
The name can be up to 30 characters in length. Only the hyphen, digit, and alphabetic characters are allowed in the name. At least one character must alphabetic. The hyphen cannot be used as the first or last character. X If program-name is a X nonnumeric literal, (other X than a figurative constant), X it can include the extension X characters $, #, and @ in X the outermost program only. |
Flagged with a warning message and treated as PGMNAME(UPPER). X X X X X X |
PGMNAME (LONGUPPER) X X X |
If program-name is a user-defined word, it can be up to 30 characters in length. X If program-name is a nonnumeric literal, it can be up to X 160 characters in length. It cannot be a figurative X constant. Only the hyphen, digit, and alphabetic characters are allowed in the name. At least one character must alphabetic. The hyphen cannot be used as the first or last character. |
|
X PGMNAME X (LONGMIXED) X X X X X X X X |
X Program-name must be X specified as a literal. It X cannot be a figurative X constant. X The name can be up to 160 X characters in length. X Program-name can consist of X any character in the range X X'41' to X'FE'. X |
X Program-name must be X specified as a literal. It X cannot be a figurative X constant. X The name can be up to 160 X characters in length. X Wherever alphabetic X characters are allowed, you X can use multi-byte X characters. |
A program is in the initial state:
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.