CALL "W$KEYBUF" USING WKBUF-START-RECORDING-FILE-APPEND                         fileName                 GIVING returnCode  | 
WKBUF-START-RECORDING-FILE-APPEND  | Constant  | |
fileName  | PIC X(n)  | Specifies the name of the file where recorded keystrokes are saved. It can be either a full or a relative pathname.  | 
0  | The file has been successfully opened for recording.  | 
1  | An I/O error occurred while opening the file.  |