IBM Version 4 Universal Remote User Manual


 
Cᑍ exception does occur.
C
C IF QUSBAVL > 
C OPEN QPRINT
C EXCEPT ERRAEPGM
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
C
Cᑍ Calculate 4-byte aligned offset for next variable length record
C
C CALC_VOFF BEGSR
C EVAL BINARY = QUSLD + 12
C DIV 4 BINARY
C MVR BINARY
C IF BINARY = 
C EVAL QUSLVR = (QUSLD + 12)
C ELSE
C EVAL QUSLVR = (QUSLD + 12 + (4 - BINARY))
C END
C EVAL %SUBST(RECS:V_OFFSET:12) = QUSVR4
C EVAL V_OFFSET = V_OFFSET + QUSLVR
C ENDSR
O
OQPRINT E ERRAEPNT 1 6
O 'Attempt to register exit -
O point failed: '
O QUSEI
OQPRINT E ERRAEPGM 1 6
O 'Attempt to add exit -
O program failed: '
O QUSEI
Retrieve Exit Point and Exit Program Information—OPM COBOL
Example
Refer to “Retrieve Exit Point and Exit Program Information—ILE C Example” on
page 4-13 for the original example.
IDENTIFICATION DIVISION.
ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
Program: Retrieve Exit Point and Exit Program Information
Language: OPM COBOL
ᑍ Description: This program retrieves exit point and exit
program information. After retrieving the
Appendix B. Original Examples in Additional Languages B-61