IBM Version 4 Universal Remote User Manual


 
C PARM ᑍBLANKS SPC_TEXT 5
C PARM 'ᑍYES' SPC_REPLAC 1
C PARM QUSEC
C PARM 'ᑍUSER' SPC_DOMAIN 1
C
Cᑍ Call QUSLSPL to get all spooled files for ᑍCURRENT user
C
C CALL 'QUSLSPL' 3
C PARM SPC_NAME
C PARM 'SPLF2' FORMAT 8 4
C PARM 'ᑍCURRENT' USR_PRF 1
C PARM 'ᑍALL' OUTQ 2
C PARM 'ᑍALL' FORMTYP 1
C PARM 'ᑍALL' USRDTA 1
C PARM QUSEC
C PARM JOBNAM 26
C PARM KEYS 5
C PARM KEY# 6
C
Cᑍ Get a resolved pointer to the User Space for performance
C
C CALL 'QUSPTRUS' 9
C PARM SPC_NAME
C PARM SPCPTR
C PARM QUSEC
C
Cᑍ If valid information was returned
C
C QUSSRL IFEQ '1' 12
C QUSIS IFEQ 'C' 14
C QUSIS OREQ 'P'
C
Cᑍ and list entries were found
C
C QUSNBRLE IFGT 16
C
Cᑍ set LSTPTR to the first byte of the User Space
C
C EVAL LSTPTR = SPCPTR
C
Cᑍ increment LSTPTR to the first List entry
C
C EVAL LSTPTR = %ADDR(ARR(QUSOLD + 1)) 18
C
Cᑍ and process all of the entries
C
C DO QUSNBRLE 2
C
Cᑍ set LSTPTR2 to the first variable length record for this entry
C
C Z-ADD 5 X 9 
C EVAL LSTPTR2 = %ADDR(ARR(X)) 22
C DO QUSNBRFR 23
C
Cᑍ process the data based on key type
C
C QUSKFFFR CASEQ 21 FILNAM 24
C QUSKFFFR CASEQ 211 PAGES
Appendix B. Original Examples in Additional Languages B-45