IBM Version 4 Universal Remote User Manual


 
C
C CALLB QUSREP5
C PARM EPNTNAME
C PARM 'EXMP1' FORMAT 8
C PARM VARREC
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
Cᑍ If the call to register an exit point is successful, add
Cᑍ an exit program to the exit point.
C
Cᑍ Set the total number of exit program attributes that are being
Cᑍ specified on the call. This program lets the API take the
Cᑍ default for the attributes that are not specified. Each
Cᑍ attribute record must be 4-byte aligned.
C
C EVAL NBR_RECS = 2
C EVAL V_OFFSET = 1
C
Cᑍ Set the values for the two attributes that are being specified:
Cᑍ Replace exit program = 1
Cᑍ Exit program data CCSID = 37
C
C EVAL QUSCK = 4
C EVAL QUSLD = 1
C EVAL %SUBST(RECS:V_OFFSET+12) = '1'
C EXSR CALC_VOFF
C EVAL QUSCK = 3
C EVAL QUSLD = 4
C EVAL BINARY = 37
C EVAL %SUBST(RECS:V_OFFSET+12) = BINARY_C
C EXSR CALC_VOFF
C
Cᑍ Call the API to add the exit program.
C
C CALLB QUSAEPGM
C PARM EPNTNAME
C PARM 'EXMP1' FORMAT
C PARM 1 BINARY
C PARM EPGM
C PARM EPGMDTA
C PARM EPGMDTA_SZ
C PARM VARREC
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
B-60 System API Programming V4R1