IBM Version 4 Universal Remote User Manual


 
C
C EVAL CMD_STR = DLTDQ
C EVAL LEN_STR = %SIZE(DLTDQ)
C
C EXSR EXEC_CMD
C
Cᑍ Delete the library
C
C EVAL CMD_STR = DLTLIB
C EVAL LEN_STR = %SIZE(DLTLIB)
C
C EXSR EXEC_CMD
C
C EVAL ᑍINLR = '1'
C RETURN
C
Cᑍ End of MAINLINE
C
Cᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
C
C EXEC_CMD BEGSR
C
Cᑍ Process the requested CL command
C
C CALL 'QCAPCMD'
C PARM CMD_STR
C PARM LEN_STR
C PARM QCAP1
C PARM CAP1_SZ
C PARM 'CPOP1' FORMAT 8
C PARM RCVVAR 1
C PARM RCVVAR_SZ
C PARM RCVVAR_SZ
C PARM QUSEC
C
Cᑍ If an exception occurs, the API returns the exception in the
Cᑍ error code parameter. The bytes available field is set to
Cᑍ zero if no exception occurs and greater than zero if an
Cᑍ exception does occur.
C
C IF QUSBAVL > 
C EVAL API_NAME = 'QCAPCMD'
C EXSR ERRCOD
C ENDIF
C ENDSR
C
Cᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
C
C ERRCOD BEGSR
C
Cᑍ Process errors returned from the API.
C
Cᑍ If first error found, then open QPRINT ᑍPRTF
C
C IF FIRST_ERR = ''
C OPEN QPRINT
C EVAL FIRST_ERR = '1'
C ENDIF
B-174 System API Programming V4R1