If the CRT STATUS clause is specified in the SPECIAL-NAMES paragraph, every
extended ACCEPT statement places a value into data-name-2 to indicate the
outcome of the ACCEPT operation. Data-name-2 consists of status keys which
are set to indicate possible conditions resulting from the completion of the
operation.
There are three CRT status keys:
- CRT Status Key 1
- The first two bytes of data-name-2. It indicates the condition that
caused the termination of the ACCEPT operation.
- CRT Status Key 2
- The next two bytes of data-name-2. It gives further details of the
condition that caused the termination of the ACCEPT operation.
- CRT Status Key 3
- The last two bytes of data-name-2. It contains the code for the keyboard
key that terminated the ACCEPT operation.