IBM Version 4 Universal Remote User Manual


 
C PARM 'SPLF2'FORMAT 8 4
C PARM 'ᑍCURRENT'USRNAM 1
C PARM 'ᑍALL' OUTQ 2
C PARM 'ᑍALL' FRMTYP 1
C PARM 'ᑍALL' USRDTA 1
C PARM QUSBN
C PARM JOBNAM 26
C PARM KEYARA 5
C PARM 3 KEY# 6
C
Cᑍ Retrieve information concerning the User Space and its contents
C
C CALL 'QUSRTVUS' 9
C PARM SPCNAM
C PARM 1 START Start Rtv at 1
C PARM 192 LENDTA for length =192
C PARM QUSBP 1
C PARM QUSBN
C
Cᑍ Check User Space status for good information
C
C QUSBPD IFEQ '1' 12 Header Fmt
C QUSBPJ IFEQ 'C' 14 Complete
C QUSBPJ OREQ 'P' or Partial
C
Cᑍ Check to see if any entries were put into User Space
C
C QUSBPS IFGT  16
C
Cᑍ Keep count of how many list entries we have processed
C
C Z-ADD COUNT 9 17
C
Cᑍ Adjust Offset value to Position value
C
C QUSBPQ ADD 1 START 18
C
Cᑍ Retrieve the lesser of allocated storage or available data
C
C QUSBPT IFLT 1 19
C Z-ADDQUSBPT LENDTA
C ELSE
C Z-ADD1 LENDTA
C ENDIF
C
Cᑍ Process all entries returned
C
C COUNT DOWLTQUSBPS 2
C
Cᑍ Retrieve spooled file information
C
C CALL 'QUSRTVUS' 21
C PARM SPCNAM
C PARM START
C PARM LENDTA
C PARM RECVR
C PARM QUSBN
C
Cᑍ Loop through returned fields
C
C 4 SUBSTRECVR QUSFV 22
C Z-ADD5 X 4
C DO QUSFVB 23
C
Cᑍ Get header information
C
C 16 SUBSTRECVR:X QUSKR 24
C
Cᑍ Set Y to location of actual data associated with key
C
C X ADD 16 Y 4
C
3-26 System API Programming V4R1