PGMNAME

PGMNAME controls the handling of program-names and entry-point names.

Syntax

Read syntax diagramSkip visual syntax diagramPGMNAME=*COMPATLONGMIXEDLONGUPPER
Default
PGMNAME=COMPAT
COMPAT
Program names are processed in a manner compatible with COBOL/370 Release 1 and VS COBOL II.
LONGMIXED
Program names are processed as is, without truncation, translation, or folding to uppercase.
LONGUPPER
Program names are folded to uppercase by the compiler but otherwise are processed as is, without truncation or translation.
The PGMNAME option controls the handling of names used in the following contexts:
  • Program names defined in the PROGRAM-ID paragraph
  • Program entry-point names in the ENTRY statement
  • Program-name references in:
    • CALL statements that reference nested programs, statically linked programs, or DLLs
    • SET procedure-pointer or function-pointer statements that reference statically linked programs or DLLs
    • CANCEL statements that reference nested programs

For further details, see PGMNAME in the Enterprise COBOL Programming Guide.