Start of change

Context-sensitive words

A context-sensitive word is a COBOL word that is reserved only in the general formats in which it is specified. If a context-sensitive word is used where the context-sensitive word is permitted in the general format, the word is treated as a keyword; otherwise it is treated as a user-defined word.

Table 1. Context-sensitive words
Context-sensitive word Language construct or context
CYCLE EXIT statement
Start of changeNAMEEnd of change Start of changeJSON GENERATE statementEnd of change
Start of changeJSON PARSE statementEnd of change
Start of changeXML GENERATE statementEnd of change
INITIALIZED ALLOCATE statement
Start of changeLOCEnd of change Start of changeALLOCATE statementEnd of change
PARAGRAPH EXIT statement
RECURSIVE PROGRAM-ID paragraph
YYYYDDD ACCEPT statement
YYYYMMDD ACCEPT statement

related references  
User-defined words

Reserved words

End of change