KPG_ENV0C

Reads a string value from an environment variable, using a default value if the variable is undefined

Description:

This routine reads a string value of up to forty characters from a specified environment variable. No error occurs should the environment variable not be defined, and the supplied value is returned unchanged.

Invocation

CALL KPG_ENV0C( VARNAM, CVAL, STATUS )

Arguments

VARNAM = CHARACTER ( ) (Given)
The environment variable to check.
CVAL = CHARACTER ( ) (Given and Returned)
The string.
STATUS = INTEGER (Given and Returned)
The global status.