PSX_PUTENV

Set a new environment variable value

Description:

The routine sets the specified environment variable to the supplied value. If it fails it sets STATUS to PSX__NOMEM.

Invocation

CALL PSX_PUTENV( NAME, VALUE, STATUS )

Arguments

NAME = CHARACTER ( ) (Given)
Name of the environment variable to be set.
VALUE = CHARACTER ( ) (Given)
The new value of the environment variable.
STATUS = INTEGER (Given and Returned)
The global status.

Examples:

CALL PSX_PUTENV( DATADIR, DIR, STATUS )
Set the DATADIR environment variable to the value stored in the DIR character string.

External Routines Used

cnf: cnfCreim, cnfExprt, cnfFree

References

Copyright

Copyright (C) 2003 Particle Physics and Astronomy Research Council