When you use ICOBOL compatibility, the compiler generates code that has the same meaning used by ICOBOL. The default screen interface, however, is controlled by the runtime system. If you want to simulate ICOBOL keyboard handling, you should add the following lines to your configuration file. For more information, see Compatibility Modes.
SCREEN Input-Display=Prompt SCREEN Numeric-Updates=Unchanged SCREEN Edited-Updates=Left-Adjust KEYBOARD Cursor-Past-End=Yes KEYSTROKE Edit=Next Terminate=0 ^M KEYSTROKE Edit=Next Terminate=0 ^J KEYSTROKE Edit=Next Terminate=0 kd KEYSTROKE Edit=Previous ku KEYSTROKE Edit=Next Terminate=0 ^I KEYSTROKE Exception=1 27 KEYSTROKE Exception=2 k1 KEYSTROKE Exception=3 k2 KEYSTROKE Exception=4 k3 KEYSTROKE Exception=5 k4 KEYSTROKE Exception=6 k5 KEYSTROKE Exception=7 k6 KEYSTROKE Exception=8 k7 KEYSTROKE Exception=9 k8
The exact meaning of these entries is described in Terminal Manager At some point, you should read this chapter to acquaint yourself with the various options available. The listing above covers only function keys 1 - 8. If you use more of the function keys, you will need to make additional KEYSTROKE entries to define those keys.
Use the ICOBOL_FILE_SEMANTICS runtime configuration variable to get ICOBOL compatible behavior when reading past the beginning or ending of a file. For more details, ICOBOL Runtime Configuration Variable.
You can use ICOBOL-compatible file status codes by entering the following line to your configuration file:
FILE-STATUS-CODES DG