IBM Version 4 Universal Remote User Manual


 
Cᑍ exceptions sent back through the error code parameter, it sets
Cᑍ the bytes provided field to the number of bytes it gives the
Cᑍ API for the parameter.
C
C EVAL QUSBPRV = %SIZE(QUSEC)
C
Cᑍ Call the API to remove the exit program.
C
C CALLB QUSREPGM
C PARM EPNTNAME
C PARM 'EXMP1' FORMAT 8
C PARM 1 PGM_NBR
C PARM QUSEC
C
Cᑍ If an exception occurs, the API returns the exception in the
Cᑍ error code parameter. The bytes available field is set to
Cᑍ zero if no exception occurs and greater than zero if an
Cᑍ exception does occur.
C
C IF QUSBAVL > 
C OPEN QPRINT
C EXCEPT ERRAEPGM
C EXSR DONE
C ENDIF
C
Cᑍ If the call to remove the exit program is successful,
Cᑍ deregister the exit point.
C
Cᑍ Call the API to deregister the exit point.
C
C CALLB QUSDEP
C PARM EPNTNAME
C PARM 'EXMP1' FORMAT
C PARM QUSEC
C
Cᑍ If an exception occurs, the API returns the exception in the
Cᑍ error code parameter. The bytes available field is set to
Cᑍ zero if no exception occurs and greater than zero if an
Cᑍ exception does occur.
C
C IF QUSBAVL > 
C OPEN QPRINT
C EXCEPT ERRAEPNT
C EXSR DONE
C ENDIF
C EXSR DONE
C
Cᑍ End of MAINLINE
C
C
Cᑍ Return to programs caller
C DONE BEGSR
C EVAL ᑍINLR = '1'
C RETURN
C ENDSR
O
OQPRINT E ERRAEPNT 1 6
O 'Attempt to deregister -
Appendix B. Original Examples in Additional Languages B-93