SET PSAM/DAPDB Commands SET
NAME
set, unset, save - set environment variables
SYNOPSIS
set [ <variable> [ = <value> ] ]
unset [ <variable> ]
save
DESCRIPTION
The set and unset commands change the settings of environ-
ment variables. The save command makes the current environ-
ment variable settings the default settings in future invo-
cations of psam or dapdb. The set command sets logical vari-
ables to TRUE and assigns <value> to variables of other
types. The unset command sets logical variables to FALSE and
resets variables of other types to the system default value.
If no parameters are supplied set and unset display the
current environment variable settings. When setting and
unsetting environment variables the variable name can be
abbreviated to the minimum unambiguous form.
The default settings are saved in the file .defaults in the
user's home directory. If default values for the environment
variables cannot be obtained from the .defaults file the
environment variables assume the system default value. The
environment variables and their system defaults are as fol-
lows:
Alias_file The name of a file containing alias com-
mands. The file is read at the start of a
psam or dapdb session and the specified
aliases take effect. When setting Alias_file
the file name should be enclosed by round
brackets. System default - none.
More A logical value which, if TRUE, indicates
that screen output should be sent through
the filter more. System default - TRUE.
Order A list of n integers, separated by spaces
and/or commas, containing the integers 1 to
n in an order which defines the dimension
printing order in arrays. The integer 1
corresponds to the fastest varying dimension
in the array (the first dimension in
FORTRAN-PLUS), the integer 2 the second
fastest varying dimension in the array, and
so on. Integers in the list which are
higher than the number of dimensions in the
array to be printed are ignored. If the
array has more than n dimensions then the
AMT Release 4.1S Last change: 11th May 1989 1
SET PSAM/DAPDB Commands SET
printing order of the higher dimensions is
n+1, n+2, etc. When setting Order the list
should be enclosed by round brackets. System
default - default, which corresponds to (2
1) for matrices and (1) for all other data.
Pattern_mode An integer in the range 0 to 2 which con-
trols the printing of logical and character
arrays. The value 0 causes such arrays to be
printed in the same way as all other arrays,
comma separated and with like terms being
collected in any specified dimensions. The
values 1 or 2 cause logical and character
arrays to be printed as 1-dimensional or 2-
dimensional patterns respectively. System
default - 2.
Source_path A list of directories in which source files,
the alias file and macro files are sought.
The directories are searched in order start-
ing at the first. When setting Source_path
the list of directories should be enclosed
by round brackets. System default - .
(Current directory.)
Term_collection An integer in the range 0 to 7 which speci-
fies the number of consecutive dimensions in
the Order list in which like terms are col-
lected when printing an array. System
default - 7.
Window_width An integer in the range 45 to 132 which
defines the maximum number of characters on
each printed line. System default - 80.
The save command stores DAP environment variables in the
user's .defaults file in a form compatible with the SunView
defaultsedit program. Users with access to this program may
use it to modify default environment variable settings.
Default environment variables may also be modified by edit-
ing the defaults file directly.
EXAMPLES
set More Sets the variable More to TRUE.
unset More Sets the variable More to FALSE.
set Term_collection = 0
Sets the variable Term_collection to 0.
set Source_path = ( . .. ~alpha/src )
Sets the variable Source_path to three
AMT Release 4.1S Last change: 11th May 1989 2
SET PSAM/DAPDB Commands SET
directories ., .. and ~alpha/src. The third
directory is interpreted as the directory
src below the home directory of the user
alpha.
set Alias_file = ( /usr/forth/jfd/dapaliases )
Sets the variable Alias_file to the file
/usr/forth/jfd/dapaliases.
SEE ALSO
alias, file, macro, message, print
AMT Release 4.1S Last change: 11th May 1989 3