3. Embedded SQL for COBOL : COBOL Data Items and Data Types : Variable and Type Declarations : Reserved Words in Declarations
 
Share this page                  
Reserved Words in Declarations
The ESQL/COBOL words in the following table are reserved when used in the DECLARE section. Additionally, the words with an asterisk are also reserved wherever they are used because they have the same name as embedded SQL keywords.
You cannot declare data items with the same name as the words that do not have an asterisk and you can only use them in quoted string constants. However, the asterisked words that match ESQL keywords can have data items with the same name.
ASCENDING
BLANK
BY *
CHARACTER
COMP-1
COMP-2
COMP-3
COMP-4
COMP-5
COMP-6
COMP
COMPUTATIONAL-1C
COMPUTATIONAL-2
COMPUTATIONAL-3
COMPUTATIONAL-4
COMPUTATIONAL-5
COMPUTATIONAL-6C
COMPUTATIONAL
DEPENDING
DESCENDING
DISPLAY *
END-EXEC
EXTERNAL
FILLER
GLOBAL *
IN *
INDEX *
INDEXED
IS *
JUST
JUSTIFIED
KEY *
LEADING
OCCURS
OF *
ON *
PACKED_DECIMAL
PIC
PICTURE
POINTER
REDEFINES
REFERENCE
SEPARATE
SIGN
SYNC
SYNCHRONIZED
TIMES
TO *
TRAILING
USAGE
VALUE
WHEN *
ZERO