IBM Version 4 Universal Remote User Manual


 
I I 'SNDMSG MSG(''No such- 1 35 MSG3A
I ' ᑍJOBD exists'') '
I I 'TOUSR(QPGMR)' 36 47 MSG3B
I
Iᑍ Miscellaneous Data Structure
I
I DS
I I 39 B 1 4RCVLEN
I I 'JOBD1' 5 12 FORMAT
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 JOBDL 1
C
Cᑍ Move the two parameters passed into LFNAM.
C
C JOBD CAT JOBDL LFNAM 2
Cᑍ Error code bytes provided is set to 
C
C Z-ADD QUSBNB 11
C
Cᑍ Instead of specifying 'QWCRJOBD', I could have used the
Cᑍ constant QWDBGB that was defined in the QWDRJOBD include.
C
C CALL 'QWDRJOBD' 1 1
C PARM QWDBH Receiver Var.
C PARM RCVLEN Length RCVVAR
C PARM FORMAT Format Name
C PARM LFNAM Qual. Job Desc
C PARM QUSBN Error Code
C 1 EXSR ERROR Error Subroutine
C
C N1 MOVELQWDBHN HOLD
C
Cᑍ Let's tell everyone what the hold value was for this job.
C
C N1 Z-ADD51 LENSTR 155
C N1 CALL 'QCMDEXC'
C PARM CMDSTR
C PARM LENSTR
C
C SETON LR
C RETRN
C
Cᑍ End of MAINLINE
C
Cᑍ Subroutine to handle errors received on the CALL
C
C ERROR BEGSR
C MSGIDD IFEQ 'CPF981'
C
Cᑍ Process errors returned from the API.
C
C Z-ADD47 LENSTR 155
C CALL 'QCMDEXC'
C PARM MSG3
C PARM LENSTR
C END
C ENDSR
If the CPF9801 exception occurs, your program sends a message to the QPGMR
message queue as shown in the following display:
3-10 System API Programming V4R1