ADD FILES

ADD FILES combines cases from 2 up to 50 open data sets or external IBM® SPSS® Statistics data files by concatenating or interleaving cases. When cases are concatenated, all cases from one file are added to the end of all cases from another file. When cases are interleaved, cases in the resulting file are ordered according to the values of one or more key variables.

ADD FILES FILE={'savfile'|'dataset'} [PASSWORD='password']
               {*                  }

 [/RENAME=(old varnames=new varnames)...]

 [/IN=varname]

 /FILE=... [PASSWORD='password']... [/RENAME=...] [/IN=...]

 [/BY varlist]

 [/MAP]

 [/KEEP={ALL**  }] [/DROP=varlist] 
        {varlist}

 [/FIRST=varname]  [/LAST=varname]

**Default if the subcommand is omitted.

Syntax for the ADD FILES command can be generated from the Add Cases dialog.

Release History

Release 22.0

  • PASSWORD keyword introduced on the FILE subcommand.

Example

ADD FILES FILE="/data/school1.sav" /FILE="/data/school2.sav".