Chapter Contents |
Previous |
Next |
Environment Variables |
This section describes technical aspects of the SAS/C TSO environment variable implementation.
Accessing the Environment Variable File |
The following strategy is used to locate the PERMANENT environment variable file:
putenv
function with a PERMANENT scope. If the request is a
getenv
function, the file is not created.
Environment Variable File Format |
Each line of
userid.C@ENV.PERM either
defines an environment variable or a group. The variables of each group are
defined after the group definition. Variables defined before the first group
are part of the default group
CENV
. A
line of the form =group defines a group, and a line of the form var=value defines a variable. If var=value uses more
than 254 characters, it takes up two lines in the file and is split at the
equal sign.
Assume that the content of a userid.C@ENV.PERM file is as follows:
NAME=Fred |
MISC.AVERYLONGNAME= averylongvalue |
In this example, two PERMANENT environment variables are defined: NAME has a value of Fred, and MISC.AVERYLONGNAME has a value of averylongvalue.
Environment Variable Implementation |
This information is provided for TSO systems programmers. Most users will not need this information.
The TSO environment variable implementation stores environment
variables in shared subpool 78 storage. If a task that does not share subpool
78 with the rest of TSO invokes
putenv
,
the
putenv
function fails. Also, use of
setenv
by such tasks may involve substantial
extra processing.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.