IBM Version 4 Universal Remote User Manual


 
ᑍᑍ 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 THE OFFSET OF THE FIRST LIST ENTRY FROM THE SPACE
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 THE LIST ENTRIES
C QUSBPQ ADD 1 START
C Z-ADD6 LENDTA 8
C Z-ADD1 X 9
C X DOWLEQUSBPS
C CALL 'QUSRTVUS'
C PARM SPCNAM
C PARM START
C PARM LENDTA
C PARM RECVR 5 7
C PARM QUSBN
C DSPLY QUSBN
C ADD QUSBPT START
C ADD 1 X
C END
Chapter 9. Common API Programming Errors 9-11