IBM Version 4 Universal Remote User Manual


 
ᑍ and process all of the entries
PERFORM PROCES2
NUMBER-LIST-ENTRIES OF QUS-GENERIC-HEADER-1 TIMES, 6
ᑍ If all entries in this User Space have been processed, check
ᑍ if more entries exist than can fit in one User Space
IF INFORMATION-STATUS OF QUS-GENERIC-HEADER-1 = "P"
ᑍ by addressing the input parameter header
SET ADDRESS OF STRING-SPACE TO SPCPTR,
SET ADDRESS OF QSY-OBJP-INPUT TO
ADDRESS OF STRING-SPACE((OFFSET-INPUT-PARAMETER
OF QUS-GENERIC-HEADER-1 + 1):1),
ᑍ If the continuation handle in the Input Parameter Header is
ᑍ blank, then set the List status to Complete
IF CONTINUATION-HANDLE OF QSY-OBJP-INPUT = SPACES
MOVE "C" TO LST-STATUS
ELSE
ᑍ Else, call QSYLOBJP reusing the User Space to get more
ᑍ List entries
MOVE CONTINUATION-HANDLE OF QSY-OBJP-INPUT
TO CONTIN-HDL OF MISC, 2
PERFORM GETLST,
MOVE INFORMATION-STATUS OF QUS-GENERIC-HEADER-1
TO LST-STATUS,
END-IF,
END-IF,
END-IF,
ELSE
ᑍ And if an unexpected status, log an error (not shown) and exit
PERFORM DONE,
END-IF.
PROCES2.
MOVE CORRESPONDING QSY-OBJP2-LIST TO OBJ-ENTRY.
WRITE LIST-LINE FROM OBJ-ENTRY.
ᑍ after each entry, increment to the next entry
SET ADDRESS OF QSY-OBJP2-LIST TO ADDRESS OF
STRING-SPACE(
(SIZE-EACH-ENTRY OF QUS-GENERIC-HEADER-1 + 1):1). 7
SET ADDRESS OF STRING-SPACE TO ADDRESS OF QSY-OBJP2-LIST.
ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
GETLST.
ᑍ Call QSYLOBJP to generate a list
ᑍ The continuation handle is set by the caller of this
ᑍ subroutine.
B-104 System API Programming V4R1