IBM Version 4 Universal Remote User Manual


 
C Z-ADD31 LENSTR
C
C EXSR EXCCMD
C
Cᑍ Delete the library
C
C MOVELDLTLIB CMDSTR
C Z-ADD2 LENSTR
C
C EXSR EXCCMD
C
C SETON LR
C RETRN
C
Cᑍ End of MAINLINE
C
Cᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
C
C EXCCMD BEGSR
C
Cᑍ Process requested CL command
C
C CALL 'QCAPCMD'
C PARM CMDSTR
C PARM LENSTR
C PARM QCABC
C PARM SIZE
C PARM 'CPOP1'FORMAT 8
C PARM RCVVAR 1
C PARM  RCVSIZ
C PARM RCVSIZ
C PARM QUSBN
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 QUSBNC IFGT 
C MOVEL'QCAPCMD' APINAM
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 FSTERR IFEQ ''
C OPEN QPRINT
C MOVEL'1' FSTERR
C ENDIF
C
Cᑍ Print the error and the API that received the error
Appendix B. Original Examples in Additional Languages B-171