SAVE
SAVE produces a data file in IBM® SPSS® Statistics format, which
contains data plus a dictionary.
SAVE OUTFILE='filespec'
[/VERSION={3**}]
{2 }
[/UNSELECTED=[{RETAIN}]
{DELETE }
[/KEEP={ALL** }] [/DROP=varlist]
{varlist}
[/RENAME=(old varlist=new varlist)...]
[/MAP] [/{COMPRESSED**}]
{UNCOMPRESSED}
{ZCOMPRESSED }
[/NAMES]
[/PERMISSIONS={READONLY }]
{WRITEABLE}
[/PASSPROTECT PASSWORD={NONE** } [ENCRYPTEDPW={NO**}] ]
{'password} {YES }
**Default if the subcommand is omitted.
This command reads the active dataset and causes execution of any pending commands. See the topic Command Order for more information.
Syntax for
the SAVE command can be generated from the Save Data As dialog box.
Release history
Release 21.0
-
ZCOMPRESSEDsubcommand added. -
PASSPROTECTsubcommand added.
Example
SAVE OUTFILE='/data/empl.sav'.