IBM Version 4 Universal Remote User Manual


 
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER. IBM-AS4.
OBJECT-COMPUTER. IBM-AS4.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT LISTING ASSIGN TO PRINTER-QPRINT
ORGANIZATION IS SEQUENTIAL.
DATA DIVISION.
FILE SECTION.
FD LISTING RECORD CONTAINS 132 CHARACTERS
LABEL RECORDS ARE STANDARD
DATA RECORD IS LIST-LINE.
1 LIST-LINE PIC X(132).
WORKING-STORAGE SECTION.
ᑍ Error Code parameter include. As this sample program
ᑍ uses COPY to include the error code structure, only the first
ᑍ 16 bytes of the error code structure are available. If the
ᑍ application program needs to access the variable length
ᑍ exception data for the error, the developer should physically
ᑍ copy the QSYSINC include and modify the copied include to
ᑍ define additional storage for the exception data.
COPY QUSEC OF QSYSINC-QLBLSRC.
ᑍ Retrieve Job Description API Include
COPY QWDRJOBD OF QSYSINC-QLBLSRC.
ᑍ Command String Data Structure
1 HOLD-VALUE.
5 TEXT1 PIC X(13) VALUE 'HOLD value - '.
5 HOLD PIC X(1).
ᑍ Error Message Text
1 MESSAGE-TEXT.
5 MSG1 PIC X(19) VALUE 'Failed. Error ID - '.
5 MSGID PIC X(7).
1 RECEIVER-LENGTH PIC S9(9) COMP-4.
1 FORMAT-NAME PIC X(8) VALUE 'JOBD1'.
1 QCMDEXC PIC X(1) VALUE 'QCMDEXC'.
ᑍ Job Description and Library Name Structure
1 JOBD-AND-LIB-NAME.
5 JOB-DESC PIC X(1).
5 JOB-DESC-LIB PIC X(1).
LINKAGE SECTION.
Appendix B. Original Examples in Additional Languages B-19