IBM Version 4 Universal Remote User Manual


 
I
I/COPY QSYSINC/QRPGSRC,QWDRJOBD
I
Iᑍ Command String Data Structure
I
ICMDSTR DS
I I 'SNDMSG MSG(''HOLD - 1 26 CMD1
I 'value is '
I 27 36 HOLD
I I ''') TOUSR(QPGMR)' 37 51 CMD2
I
IMSG2 DS
I I 'SNDMSG MSG(''Progr- 1 43 MSG2A
I 'am failed with mes-
I 'sage ID '
I 44 5 MSGIDD
I I ''') TOUSR(QPGMR)' 51 65 MSG2B
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 the LFNAM.
C
C JOBD CAT JOBDL LFNAM 2
C
Cᑍ Error code parameter is set to 16
C
C Z-ADD16 QUSBNB 15
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'
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ᑍ See if any errors were returned in the error code parameter.
C EXSR ERRCOD
C
C
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
Cᑍ Subroutine to handle errors returned in the error code
Cᑍ parameter.
C
Chapter 3. Common Information across APIs—Basic (OPM) Example
3-13