Differences between revisions 6 and 7
Revision 6 as of 2023-06-11 21:33:54
Size: 1266
Comment:
Revision 7 as of 2023-06-12 00:59:53
Size: 1408
Comment:
Deletions are marked like this. Additions are marked like this.
Line 45: Line 45:
The `UPDATE` command recognizes [[SPSS/Filter|FILTER]] status and preserves it, although filtered cases are included in the final dataset.

SPSS Update

The UPDATE command overwrites values in a dataset with non-missing values from another dataset.


Usage

update file=foo
  /file=bar
  /by KEYVARS.

The master file is modified in-place. Rows and columns originating from a transaction file are appended.

The key variables must be defined with the same format (including length for string variables) in each dataset. Cases must be uniquely identified by the key variables in each dataset.

Each dataset must be presorted by the key variables.

File

Each /FILE subcommand takes one of:

  • a star (*) indicating the active data set

  • the name of a data set
  • a filename or file handle


Data Model

The UPDATE command reads all datasets and data files named on /FILE subcommands.

Execution of the UPDATE command is deferred until the active dataset is read, or until one of the EXECUTE, SAVE, or SORT CASES commands are used.

The UPDATE command recognizes FILTER status and preserves it, although filtered cases are included in the final dataset.


See also

PSPP manual for UPDATE


CategoryRicottone

SPSS/Update (last edited 2024-01-02 17:07:57 by DominicRicottone)