IBM Version 4 Universal Remote User Manual


 
STOP RUN.
ᑍ End of Mainline
ᑍ Subroutine to handle errors returned in the error code
ᑍ parameter.
ERRCOD.
IF BYTES-AVAILABLE OF QUS-EC > 
ᑍ Process errors returned from the API.
STOP RUN.
ᑍ Subroutine to check to see if there is enough room in the
ᑍ receiver variable for the next library in the list.
RECLEN.
IF (X + 1) >= RECEIVER-LENGTH
STOP RUN.
Accessing a Field Value (Initial Library List)—ILE RPG Example
Refer to “Accessing a Field Value (Initial Library List)—OPM RPG Example” on
page 3-19 for the original example.
Dᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
Dᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
D
Dᑍ Program Name: JOBDAPI
D
Dᑍ Programming Language: ILE RPG
D
Dᑍ Description: This program retrieves the library list from
Dᑍ a job description. It expects errors to be
Dᑍ returned via the error code parameter.
D
Dᑍ Header Files Included: QUSEC - Error Code Parameter
D
Dᑍ Header Files Modified: QWDRJOBD - Retrieve Job Description API
D
Dᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
Dᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
D
Dᑍ Error Code parameter include
D
D/COPY QSYSINC/QRPGLESRC,QUSEC
D
Dᑍ The following QWDRJOBD include from QSYSINC is copied into
Dᑍ this program so that it can be declared as 1 bytes in
Dᑍ size. This size should accommodate the variable length Library
Dᑍ List array.
D
Appendix B. Original Examples in Additional Languages B-29