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

Libraries and Utility Routines
HP COBOL Manual for TNS/E Programs520347-003
13-28
COBOL_PUTENV_
COBOL_PUTENV_
The COBOL_PUTENV_ routine sets a specified environment variable to a specified
value.
env-var
is the name of the environment variable whose value is to be set. It cannot have
trailing spaces or a zero-byte terminator.
return-value
is zero if the value of env-var was successfully set, nonzero if the value of env-
var was not set because of insufficient heap space.
COBOL_RETURN_SORT_ERRORS_
The COBOL_RETURN_SORT_ERRORS_ routine returns any error message from the
FastSort utility program.
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_RETURN_SORT_ERRORS_.
ENTER
USING env-var
COBOL_PUTENV_
" "
GIVING
ns ns
return-value
VST723.vsd
ENTER
USING
library-reference
sd-name
" "
OF
error-report
return-code
COBOL_RETURN_SORT_ERRORS_
GIVING
VST809.vsd
ns ns