WKBUF-ADD-TO-END
This operation adds keystrokes to the end of the keyboard buffer.
Syntax
 CALL "W$KEYBUF" USING WKBUF-ADD-TO-END 
                       keyCodes
                GIVING returnCode
Parameters:
WKBUF-ADD-TO-END
Constant
 
keyCodes
PIC X(n)
Keycodes to be added.
 
The keycode string can be composed of letters, numbers and special keycodes. Special keycodes must be used with Acucobol-GT syntax and must be placed between curly brackets.
For example, in order to send "A", "B" and enter to the runtime, the following string should be used "AB{^M}".
Menu selections are encoded as {m#} where "#" is the numeric ID of the menu item.
See Acucobol-GT key codes for W$KEYBUF routine for the lists the supported special keycodes.
Return Code:
returnCode can be any numeric data item and provides additional information:
0
Operation successful.
1
Operation failed.