IBM Version 4 Universal Remote User Manual


 
WRITE LIST-LINE FROM MESSAGE-TEXT.
STOP RUN.
Accessing the HOLD Attribute—ILE RPG Example
Refer to “Accessing the HOLD Attribute—OPM RPG Example” on page 3-17 for
the original example.
Fᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
Fᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
F
Fᑍ Program Name: JOBDAPI
F
Fᑍ Programming Language: ILE RPG
F
Fᑍ Description: This program retrieves the HOLD value from
Fᑍ a job description and then prints the value.
Fᑍ It expects errors to be returned via the
Fᑍ error code parameter.
F
Fᑍ Header Files Included: QUSEC - Error Code Parameter
Fᑍ QWDRJOBD - Retrieve Job Description API
F
Fᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
Fᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
F
FQPRINT O F 132 PRINTER OFLIND(ᑍINOF)
D
Dᑍ Error Code parameter include
D
D/COPY QSYSINC/QRPGLESRC,QUSEC
D
Dᑍ Retrieve Job Description API Include
D
D/COPY QSYSINC/QRPGLESRC,QWDRJOBD
D
Dᑍ Miscellaneous data structure
D
DRCVLEN S 9B  INZ(%SIZE(QWDD1))
DFORMAT S 8 INZ('JOBD1')
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)
C
Cᑍ Call the API.
Appendix B. Original Examples in Additional Languages B-21