IBM Version 4 Universal Remote User Manual


 
I I 'SPCNAME ' 1 1 SPC
I I 'QTEMP ' 11 2 LIB
ᑍᑍ OTHER ASSORTED VARIABLES
I DS
I I 2 B 1 4SIZ
I B 5 8START
I B 9 12LENDTA
I I X'' 13 13 INTVAL
ᑍ SET UP TO ACCEPT EXCEPTIONS
C Z-ADDᑍZEROS QUSBNB
ᑍ CREATE THE SPACE TO HOLD THE DATA
C CALL 'QUSCRTUS'
C PARM SPCNAM
C PARM 'EXT_ATTR'EXTATR 1
C PARM SIZ
C PARM INTVAL
C PARM 'ᑍALL 'PUBAUT 1
C PARM 'TEXT DSC'TXTDSC 5
C PARM 'ᑍYES 'REPLAC 1
C PARM QUSBN
ᑍ CALL THE API TO LIST THE ACTIVE JOBS
C CALL 'QUSLJOB'
C PARM SPCNAM
C PARM 'JOBL1'FORMAT 8
C PARM JOBNAM
C PARM 'ᑍACTIVE 'STAT 1
C PARM QUSBN
ᑍ RETRIEVE INFORMATION ABOUT THE USER SPACE AND ITS CONTENTS
C Z-ADD1 START
C Z-ADD14 LENDTA
C CALL 'QUSRTVUS'
C PARM SPCNAM
C PARM START
C PARM LENDTA
C PARM QUSBP
C PARM QUSBN
ᑍ RETRIEVE LIST ENTRIES
C QUSBPQ ADD 1 START
C Z-ADD52 LENDTA
C Z-ADD1 X 9
C X DOWLEQUSBPS
C CALL 'QUSRTVUS'
C PARM SPCNAM
C PARM START
C PARM LENDTA
C PARM QUSDD
C PARM QUSBN
ᑍ RETRIEVE THE NEXT LIST ENTRY (SPECIFYING LAST RELEASE'S
ᑍ FORMAT LENGTH AS THE AMOUNT TO BUMP THE POINTER - THIS
ᑍ WILL RESULT IN "GARBAGE" IN THE RECEIVER VARIABLE BECAUSE THE
ᑍ FORMAT IS NOW 56 BYTES LONG)
Chapter 9. Common API Programming Errors 9-15