Save a user specified list of variables and parameters to an
The primary purpose of this command is for use with general
purpose macros. Specifically, macros can save the current
values for certain variables, re-use those variables in the
macro and then restore the original values to the variables.
You can save variables and parameters. However, matrices and
strings/functions are not currently supported.
The RESTORE VARIABLE command is used to
restore the variables saved by this command.
SAVE VARIABLE <file-name> <list-variables>
where <file-name> is the name of a file where the variables
and parameters are saved;
and <list-variables> is a list of parameters and variables.
If no <file-name> is given, the file "dpsavf.tex" is used.
If no variables are specifed, then all currently defined variables
and parameters will be saved.
SAVE VARIABLES VARLIST.DAT
SAVE VARIABLES VARLIST.DAT Y X1 X2 X3 X4
The format of the save file is something like
For each name, the first line prints the variable/parameter name
and also prints the type (VARIABLE or PARAMETER). If the name is
a variable, the next line specifies the number of elements in
the variable. The contents of the variable are then printed one
element per line. If the name is a parameter, then the value of
the parameter is printed on the next line.
Variables and parameters are printed one at a time.
Dataplot has no restrictions on the file name other than it be a
valid file name on the local operating system and that it contain
a period "." in the file name itself or as a trailing character.
Dataplot strips off trailing periods on those systems where it is
appropriate to do so. On systems where trailing periods can be a
valid file name (e.g., Unix), Dataplot opens the file with the
File names are case sensitive on Unix/Linux and MacOSX file
systems. For these systems, Dataplot opens the file as given. All
other currently supported systems are not case sensitive regarding
As a further caution for Unix hosts, certain expansion characters
(specifically ~ to refer to your home directory) are interpreted
by the shell and are not recognized by the Fortran compiler. These
expansion characters are interpreted as literal characters and do
not yield the intended file name.
Restore variables and parameters saved with a
SAVE VARIABLE command.
Save all internal Dataplot settings to a file.
Restore all internal Dataplot settings from a previously
Reset internal DATAPLOT settings to their default values.
READ BERGER1.DAT Y X BATCH
SAVE VARIABLES Y X BATCH
LET Y = NORMAL RANDOM NUMBERS FOR I = 1 1 100
LET X = SEQUENCE 1 1 10
LET BATCH = 1 FOR I = 1 1 10
PRINT Y X BATCH
NIST is an agency of the U.S.
Date created: 12/09/2020
Last updated: 12/09/2020
Please email comments on this WWW page to