Summary -
In this topic, we described about the Reserved Words with detailed example.
A reserved word is a predefined word in a COBOL language with proper meaning. Reserved words can be -
- Keywords
- Optional words
- Figurative constants
- Special character words
- Special registers
Reserved Word | Description |
---|---|
Keywords | Keywords are reserved words that are required to code each program. Such keywords appear in uppercase on each sentence or statement. For example -
|
Optional words | Optional words are reserved words that do not affect the program's execution. They can be included in a sentence or statement to improve readability. For example -
|
Figurative constants | Figurative constants are reserved words and refers to specific constant values. For example -
|
Special character words | Special character words are used for a special purpose. There are five types of special character words -
|
Special registers | Special registers represent storage areas generated by the compiler. Their primary use is to store information produced by specific COBOL components. Each storage area has a fixed name and should not be defined within the program. For example -
|