IBM Version 4 Universal Remote User Manual


 
Cᑍ Move the two parameters passed into LFNAM
C
C JOBD CAT JOBD_LIB LFNAM 2
C
Cᑍ Error Code Bytes Provided is set to 
C
C Z-ADD QUSBPRV 11
C
Cᑍ Call the API.
C
C CALL QWDRJOBD 1 1
C PARM QWDD1
C PARM RCVLEN
C PARM FORMAT
C PARM LFNAM
C PARM QUSEC
C
Cᑍ Test for an error on the API call
C
C IF ᑍIN1 = ᑍON
C
Cᑍ If there was an error, exit to ERROR subroutine
C
C EXSR ERROR
C
Cᑍ Else, process the HOLD value
C
C ELSE
C MOVEL QWDHJQ HOLD
C
Cᑍ Let's tell everyone what the hold value was for this job
C
C CALL 'QCMDEXC'
C PARM CMD_STRING
C PARM LENSTR
C END
C
C EVAL ᑍINLR = '1'
C RETURN
C
Cᑍ End of MAINLINE
C
Cᑍ Subroutine to handle errors received on the CALL
C
C ERROR BEGSR
C IF MSG_ID = 'CPF981'
C
Cᑍ Process errors returned from the API
C
C CALL 'QCMDEXC'
C PARM NO_JOBD
C PARM NO_JOBD_SZ
C END
C ENDSR
Appendix B. Original Examples in Additional Languages B-9