···88some wonderful hacks to get around the limitations of the
99system. Mainframes are also chock full of history.
10101111-### Base-2 numerics
1111+### Base-10 numerics
12121313This is the first thing that stood out to me when I looked
1414at COBOL code, a data-definition (the phrase for "variable")
···27272828That statement declares a variable called `HEIGHT` with type
2929`9(3)`, which is shorthand for `999`, which indicates
3030-"3-digit number". Similarly `A(5)` indicates 5-character
3131-alphabetic string.
3030+"3-digit number". The possible values for this variable are
3131+`0` to `999`!
32323333### Internationalisation
3434···9999 01 DATE.
100100 05 DD PIC 9(2).
101101 05 FILLER PIC X.
102102- 05 MM PIC 9(2).
102102+ 05 MMM PIC A(3).
103103 05 FILLER PIC X.
104104 05 YYYY PIC 9(4).
105105···107107 .
108108 .
109109110110- MOVE "03/04/2025" TO DATE.
110110+ MOVE "03 MAR 2025" TO DATE.
111111 DISPLAY "DAY: " DD. *> DAY: 03
112112- DISPLAY "MONTH: " MM. *> MONTH: 04
112112+ DISPLAY "MONTH: " MMM. *> MONTH: MAR
113113 DISPLAY "YEAR: " YYYY. *> YEAR: 2025
114114115115 *> also works:
116116- MOVE "03.04.2025" TO DATE.
116116+ MOVE "03-MAR-2025" TO DATE.
117117```
118118119119### Early exit