IBM Version 4 Universal Remote User Manual


 
C PARM EPNTNM
C PARM 'EXMP1'EPTFMT 8
C PARM EPGMNB
C PARM  QUSCCB
C PARM QUSBN
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 QUSBNC IFGT 
C OPEN QPRINT
C EXCPTERREPT
C EXSR DONE
C ENDIF
C
Cᑍ If the call to retrieve exit point information is successful,
Cᑍ check to see if there are any exit programs to call.
C
C 36 SUBSTRCV:1 QUSCG
C QUSCGG IFGT 
C 1 ADD QUSCGF X
C 21 SUBSTRCV:X QUSCF
C QUSCFF IFGT 
C
Cᑍ There are some exit programs to call. Blank out the continuation
Cᑍ handle to let the API know that this is a first attempt at the
Cᑍ retrieve operation.
C
C MOVE ᑍBLANKS CONTHD
C
Cᑍ Call the exit programs
C
C EXSR CUSREI
C
Cᑍ If the continuation handle field in the receiver variable is
Cᑍ not set to blanks, the API has more information to return than
Cᑍ what could fit in the receiver variable. Call the API for
Cᑍ more exit programs to call.
C
C QUSCGD DOWNEᑍBLANKS
C MOVELQUSCGD CONTHD
C EXSR CUSREI
C ENDDO
C ENDIF
C ENDIF
C EXSR DONE
C
Cᑍ End of MAINLINE
C
Cᑍ Process exit programs in receiver variable
C
C CUSREI BEGSR
C
Cᑍ Call the API to retrieve the exit program information
C
C CALL 'QUSRTVEI'
Appendix B. Original Examples in Additional Languages B-73