User-Defined
User-defined words are used for commonly as naming files, operational data, records, big paragraph names, and sections. Alphabets, digits also can hyphen are allowed as forming user-defined words, so cannot use COBOL reserved words.
The types of user-defined words:
Types of User-Defined Words | Defining Rules |
---|---|
alphabet-name class-name condition-name constant-name data-name file-name index-name locale-name mnemonic-name program-name |
Each of these words must contain at least one letter |
library-name program-name text-name |
Each of these words must contain one letter. The starting 10 characters must form a unique word |
COBOL Words
COBOL Words are characters like string that can be reserved words or user-defined words. The length can be up to 30 characters. COBOL words must be as from a set of letters, digits, the hyphen, and the underscore.