COBOL Manual for TNS/E Programs (H06.03+)

Libraries and Utility Routines
HP COBOL Manual for TNS/E Programs520347-003
13-23
COBOL_COMPLETION_
COBOL_COMPLETION_
The COBOL_COMPLETION_ routine passes completion parameters to either the
STOP or ABEND routine in the operating environment (depending on the abend-or-
stop parameter).
library-reference
is a mnemonic-name in the SPECIAL-NAMES paragraph. This mnemonic-name is
associated with the DLL containing an object copy of COBOL_COMPLETION_.
abend-or-stop
is a numeric operand that specifies either the STOP or ABEND routine. abend-
or-stop is evaluated and truncated to produce an integer result with a value in
the range of -32,768 through 32,767. The value 0 specifies the STOP routine; all
other values specify the ABEND routine. The default is 0.
completion-code
is a numeric operand, the evaluation of which includes truncation as necessary to
an integer result with a value in the range of -32,768 through 32,767. If this
parameter is present, the value is passed to STOP or ABEND as the
completion-code parameter for that routine.
USING
library-reference
abend-or-stop
ENTER COBOL_COMPLETION_
" "
TAL
OF
completion-code
termination-info
subsys-id
text
ns ns
VST343.vsd