IBM Version 4 Universal Remote User Manual


 
C
C QUSBAVL IFGT
C
Cᑍ If CPF981, then User Space was not found
C
C QUSEI IFEQ 'CPF981'
C
Cᑍ So create a User Space for the List generated by QSYLOBJP
C
C CALL 'QUSCRTUS'
C PARM SPC_NAME
C PARM 'QSYLOBJP ' EXT_ATTR 1
C PARM SPC_SIZE
C PARM SPC_INIT
C PARM 'ᑍALL' SPC_AUT 1
C PARM ᑍBLANKS 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ᑍ Else, an error occurred accessing the User Space
C
C ELSE
C MOVEL 'QUSROBJD' APINAM 1
C EXSR APIERR
C END
C END
C
Cᑍ Set QSYLOBJP (via GETLST) to start a new list
C
C MOVE ᑍBLANKS CONTIN_HDL
C EXSR GETLST
C
Cᑍ Get a resolved pointer to the User Space for performance
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 ENDSR
Cᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
C APIERR BEGSR
C
Cᑍ Log any error encountered, and exit the program
Appendix B. Original Examples in Additional Languages B-111