IBM Version 4 Universal Remote User Manual


 
ᑍ address current list entry
SET ADDRESS OF STRING-SPACE TO SPCPTR,
SET ADDRESS OF QUS-SPLF2 TO
ADDRESS OF STRING-SPACE((OFFSET-LIST-DATA
OF QUS-GENERIC-HEADER-1 + 1):1), 18
ᑍ and process all of the entries
PERFORM PROCES
NUMBER-LIST-ENTRIES OF QUS-GENERIC-HEADER-1 TIMES, 2
ELSE
WRITE LIST-LINE FROM LSTERR. 15
STOP RUN. 28
ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
PROCES.
ᑍ address the first variable length record for this entry
SET ADDRESS OF QUS-LSPL-KEY-INFO TO ADDRESS OF
QUS-SPLF2(5:).
ᑍ process all variable length records associated with this entry
PERFORM PROCES2 NUM-FIELDS-RETD TIMES. 2223
WRITE LIST-LINE FROM PRTLIN. 26
ᑍ after each entry, increment to the next entry
SET ADDRESS OF STRING-SPACE TO ADDRESS OF QUS-SPLF2. 27
SET ADDRESS OF QUS-SPLF2 TO ADDRESS OF STRING-SPACE
((SIZE-EACH-ENTRY OF QUS-GENERIC-HEADER-1 + 1):1).
ᑍ Process each variable length record based on key
PROCES2.
ᑍ extract spooled file name for report
IF KEY-FIELD-FOR-FIELD-RETD OF QUS-LSPL-KEY-INFO = 21 2425
MOVE SPACES TO PRTFIL,
MOVE DATA-FIELD OF QUS-LSPL-KEY-INFO(
1:DATA-LENGTH OF QUS-LSPL-KEY-INFO)
TO PRTFIL.
ᑍ extract number of pages for report
IF KEY-FIELD-FOR-FIELD-RETD OF QUS-LSPL-KEY-INFO = 211 2425
MOVE DATA-FIELD OF QUS-LSPL-KEY-INFO(
1:DATA-LENGTH OF QUS-LSPL-KEY-INFO)
TO PAGESA,
MOVE PAGESN TO PAGES.
Appendix B. Original Examples in Additional Languages B-41