3. Embedded QUEL for COBOL : COBOL Variables and Data Types : Variable and Type Declarations : Reserved Words in Declarations
 
Share this page                  
Reserved Words in Declarations
You cannot declare types or variables with the same name as EQUEL keywords. You can only use them in quoted string constants. All EQUEL keywords are reserved. In addition to EQUEL keywords, the following EQUEL/COBOL keywords are reserved and cannot be used except in quoted string constants.
ASCENDING
BLANK
BY*
CHARACTER
COMP-1
COMP-2
DECLARE
DEPENDING
DESCENDING
DISPLAY*
EXTERNAL
FILLER
PACKED_DECIMAL
PIC
PICTURE
POINTER
REDEFINES
REFERENCE
COMP-3
COMP-4
COMP-5
GLOBAL*
IN*
INDEX*
SEPARATE
SIGN
SYNC
COMP-6
COMP
COMPUTATIONAL-1
COMPUTATIONAL-2
COMPUTATIONAL-3
COMPUTATIONAL-4
COMPUTATIONAL-5
COMPUTATIONAL-6
COMPUTATIONAL
INDEXED
IS*
JUST
JUSTIFIED
KEY*
LEADING
OCCURS
OF*
ON*
SYNCHRONIZED
TIMES
TO
TRAILING
USAGE
VALUE
WHEN
ZERO
The EQUEL preprocessor does not distinguish between uppercase and lowercase in keywords. When it generates COBOL code, it converts any lowercase letters in keywords to uppercase. This rule is true only for keywords. The preprocessor does distinguish between case in program-defined types and variable names.
Variable and type names must be legal COBOL identifiers beginning with an alphabetic character or an underscore.