IBM Version 4 Universal Remote User Manual


 
D 15 INZ(''') TOUSR(QPGMR)')
DCMD_STR2 DS
D 43 INZ('SNDMSG MSG(''Program failed -
D with message ID ')
D MSG_ID 7
D 15 INZ(''') TOUSR(QPGMR)')
D
Dᑍ Miscellaneous data structure
D
DRCVLEN S 9B  INZ(%SIZE(QWDD1))
DFORMAT S 8 INZ('JOBD1')
DLENSTR S 15 5 INZ(%SIZE(CMD_STRING))
DLENSTR2 S 15 5 INZ(%SIZE(CMD_STR2))
C
Cᑍ Beginning of mainline
C
Cᑍ Two parameters are being passed into this program
C
C ᑍENTRY PLIST
C PARM JOBD 1
C PARM JOBD_LIB 1
C
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 16
C
C EVAL QUSBPRV = %SIZE(QUSEC) 15
C
Cᑍ Call the API.
C
C CALL QWDRJOBD
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 QUSBAVL >  13
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
Appendix B. Original Examples in Additional Languages B-15