| Introduction | MTB Statements | File System | Compiler | Applications | Reference Guide | Index |
| Language Structure | Data Division | I/O Format Division | Procedure Division | Mnemonics |
| Overview | Variable Names | Variable Types | Variable Length | Variable Classification | Data Division Statements | System Variables |
| System variable: | LONGYEAR |
| Length/precision: | 4.0 |
| Description: | The system variable named LONGYEAR is a four-digit numeric variable whose value equals the current year (e.g., 1996). This value is obtained from the DOS system date. |
| System variable: | LONGYEAR$ |
| Length: | 4 |
| Description: | The system variable named LONGYEAR is a four-byte string whose value equals the current year (e.g., "1996"). This value is obtained from the DOS system date. |