isCOBOL Evolve : Appendices : Library Routines : W$KEYBUF : WKBUF-START-RECORDING
WKBUF-START-RECORDING
This operation starts recording keystrokes from the user input.
Keystrokes generated by WKBUF-ADD-TO-END and WKBUF-ADD-TO-BEGINNING, if any, are recorded along with the user input.
Syntax
 CALL "W$KEYBUF" USING WKBUF-START-RECORDING 
                       keyCodes
                      [bufferSize]
                GIVING returnCode
Parameters:
WKBUF-START-RECORDING
Constant
 
keyCodes
PIC X(n)
Receives the recorded keystrokes.
bufferSize
PIC 9(n)
Optional parameter. It specifies the size of the recording buffer. If omitted, keyCodes is used entirely.
Return Code:
returnCode can be any numeric data item and provides additional information:
0
Operation successful.
1
Operation failed.