Use the following call:
call x"AF" using set-map-byte adis-key-mapping
where set-map-byte and adis-key-mapping are defined in the Working-Storage Section of your program as follows:
01 set-map-byte pic 9(2) comp-x value 3. 01 adis-key-mapping. 03 adis-map-byte pic 9(2) comp-x. 03 adis-key-number pic 9(2) comp-x.
where:
The following code changes the action of the Backspace key (key number 14) to simply move the cursor to the left (function 3), and changes the Tab key (key number 8) to perform the Tab function (function 8):
* Change mapping of Backspace key move 14 to adis-key-number move 3 to adis-mapping-byte call x"AF" using set-map-byte adis-key-mapping * Change mapping of the tab key move 8 to adis-key-number move 8 to adis-mapping-byte call x"AF" using set-map-byte adis-key-mapping