IBM Version 4 Universal Remote User Manual


 
ᑍ Input parameters.
1 USR-PRF PIC X(1).
1 OBJ-TYPE PIC X(1).
ᑍ String to map User Space offsets into
1 STRING-SPACE PIC X(32).
ᑍ User Space Generic Header include. These includes will be
ᑍ mapped over a User Space.
COPY QUSGEN OF QSYSINC-QLBLSRC.
ᑍ List Objects that Adopt API include. These includes will be
ᑍ mapped over a User Space.
COPY QSYLOBJP OF QSYSINC-QLBLSRC.
ᑍ Beginning of mainline
PROCEDURE DIVISION USING USR-PRF, OBJ-TYPE.
MAIN-LINE.
PERFORM INIT.
PERFORM PROCES.
PERFORM DONE.
ᑍ Start of subroutines
ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
PROCES.
ᑍ Do until the list is complete
MOVE INFORMATION-STATUS OF QUS-GENERIC-HEADER-1 TO
LST-STATUS.
PERFORM PROCES1 WITH TEST AFTER UNTIL LST-STATUS = "C".
PROCES1.
ᑍ This subroutine processes each entry returned by QSYLOBJP
ᑍ If valid information was returned
IF (INFORMATION-STATUS OF QUS-GENERIC-HEADER-1 = "C"
OR INFORMATION-STATUS OF QUS-GENERIC-HEADER-1 = "P")
IF NUMBER-LIST-ENTRIES OF QUS-GENERIC-HEADER-1 > 
ᑍ increment to the first list entry
SET ADDRESS OF QSY-OBJP2-LIST TO
ADDRESS OF STRING-SPACE(
(OFFSET-LIST-DATA OF QUS-GENERIC-HEADER-1 + 1):1), 5
SET ADDRESS OF STRING-SPACE TO ADDRESS OF
QSY-OBJP2-LIST,
Appendix B. Original Examples in Additional Languages B-103