Ch 3_4. COBOL Language Elements
- Words
- Reserved Words: e.g. DAY
- User-defined Words: e.g. YY, MONTH
- Constants or Literals
- Non-numeric literals
- enclosed in quotation marks ' '
- 1 ~ 160 characters (COBOL 85)
- Any character except '
- Numeric literals
- 1 to 18 digits
- +, -, . (decimal point) permitted within the
literal
- e.g.: -.97, 15.0
- wrong e.g.: 15.
- Figurative Constants
- ZERO, ZEROS, ZEROES
- SPACE, SPACES