IBM Version 4 Universal Remote User Manual


 
C
Cᑍ Set Error Code structure to not use exceptions
C
C Z-ADD 16 QUSBPRV
C
Cᑍ Create a User Space for QDBRTVFD
C
C CALL 'QUSCRTUS'
C PARM SPC_NAME
C PARM ᑍBLANKS EXT_ATTR 1
C PARM 124 SPC_SIZE
C PARM SPC_INIT
C PARM 'ᑍCHANGE' SPC_AUT 1
C PARM 'QDBRTVFD' SPC_TEXT 5
C PARM 'ᑍYES' SPC_REPLAC 1
C PARM QUSEC
C PARM 'ᑍUSER' SPC_DOMAIN 1
C
Cᑍ Check for errors on QUSCRTUS
C
C QUSBAVL IFGT
C MOVEL 'QUSCRTUS' APINAM 1
C EXSR APIERR
C END
C
Cᑍ Change the User Space so that it is extendable
C
C CALL 'QUSCUSAT'
C PARM LIB_NAME
C PARM SPC_NAME
C PARM CHG_ATTR
C PARM QUSEC
C
Cᑍ Check for errors on QUSCUSAT
C
C QUSBAVL IFGT
C MOVEL 'QUSCUSAT' APINAM 1
C EXSR APIERR
C END
C
Cᑍ Get a resolved pointer to the User Space
C
C CALL 'QUSPTRUS'
C PARM SPC_NAME
C PARM SPCPTR
C PARM QUSEC
C
Cᑍ Check for errors on QUSPTRUS
C
C QUSBAVL IFGT
C MOVEL 'QUSPTRUS' APINAM 1
C EXSR APIERR
C END
C
Cᑍ If no errors, then call QDBRTVFD passing the address of the
Cᑍ User Space as the receiver variable. As Data Structure
Cᑍ QDBQ25 is defined as BASED(SPCPTR) and SPCPTR is set to the
Cᑍ first byte of the User Space, simply passing QDBQ25 will cause
B-164 System API Programming V4R1