Environment       (Dataset - Alt)

DESCRIPTION
The "Environment" shows the name (not the value) of a system environment
variable that specifies the system directory for an alternate index file.


VALUES
The "Environment" variable name can consist of one to fourteen characters. By 
convention, the name of an "Environment" variable is an uppercase character 
string. The "Environment" variable contains a character string that identifies
a file system directory. Sun MTPScan obtains the name of the "Environment" 
variable from the Sun MTP File Control Table (FCT).

To view the value of the "Environment" variable, echo the value at the system 
prompt where the Sun MTP system was initiated. For example, if the "Environment"
value is 'KIXSYS', view the contents as follows:

$ echo $KIXSYS


INTERPRETATION
The value of "Environment" variable specifies a system directory that contains
a dataset's file. The actual name of the file appears in the "Filename" column 
of the 'Alternates' KxScrolledList. Both are defined in both the Sun MTP FCT
and File Manager. Concatenate the "Filename" to the end of the value of the 
"Environment" to obtain the full pathname of the file. If the file is a KSDS 
dataset, two files will have this pathname with the extensions .dta and .idx for
the data and the index portions, respectively.


CONCLUSIONS
Because Sun MTP stores the name of the "Environment", not the value, it is very
easy to change the location of an alternate index without having to reconfigure
Sun MTP. To move an alternate to a more efficient location, just change the
value of its "Environment" variable before initiating a Sun MTP system.

Prior to starting a Sun MTP system, verify that all alternate index "Environment"
variables are set correctly. If an "Environment" variable is set incorrectly, 
unikixmain.log will indicate the alternate's problem. If Sun MTP cannot open an 
alternate, the system closes all elements of the file. 
