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) ![]() ![]() ![]() ![]() ![]() ![]() |
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. ![]() ![]() ![]() ![]() ![]() ![]() |
Flagged with a warning message and treated as PGMNAME(UPPER). ![]() ![]() ![]() ![]() ![]() ![]() |
PGMNAME (LONGUPPER) ![]() ![]() ![]() |
If program-name is a user-defined word, it 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. |
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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.