


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. (Section 2.7 of the User's Guide discusses the configuration file in detail.)
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 Chapter 4 of the User's Guide, "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, see the entry for this configuration variable in Appendix H.
You will also probably want to use file status codes that are compatible with those used by ICOBOL. You can do that by entering the following line to your configuration file:
FILE-STATUS-CODES DG