COBOL Manual for TNS and TNS/R Programs
Libraries and Utility Routines
HP COBOL Manual for TNS and TNS/R Programs—522555-006
13-46
COBOL_PUTENV_
COBOL_PUTENV_
The COBOL_PUTENV_ routine sets a specified environment variable to a specified
value. This routine is available only to programs compiled for the CRE.
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.
COBOL85^RETURN^SORT^ERRORS and
COBOL_RETURN_SORT_ERRORS_
The COBOL85^RETURN^SORT^ERRORS and COBOL_RETURN_SORT_ERRORS_
routines return any error message from the FastSort utility program.
ENTER
USING env-var
COBOL_PUTENV_
" "
GIVING
ns ns
return-value
VST723.vsd
ENTER
USING
library-reference
sd-name
COBOL85^RETURN^SORT^ERRORS
" "
OF
error-report
return-code
COBOL_RETURN_SORT_ERRORS_
GIVING
ns ns
VST344.vsd