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

Libraries and Utility Routines
HP COBOL Manual for TNS/E Programs520347-003
13-27
COBOL_GETENV_
COBOL_GETENV_
The COBOL_GETENV_ routine returns the value of a specified environment variable.
env-var
is the name of the environment variable whose value is to be returned. It cannot
have trailing spaces or a zero-byte terminator.
return-value
is the name of the variable that will hold the returned value of env-var. It must be
large enough to hold the maximum possible value of env-var.
length
is the number of characters that return-value contains. If length is zero,
env-var was not found.
ENTER
USING env-var
COBOL_GETENV_
" "
lengthGIVING
ns ns
return-value
VST722.vsd