SPSS Write

The WRITE command writes data to an external file. Compare to PRINT. The difference is that WRITE will not begin each line with a space character, and will not delimit values with a space character.


Usage

write outfile="path/to/file" / foo bar baz.
write outfile="path/to/file encoding="1252" / foo bar baz.
write outfile="path/to/file" / 'a string literal' foo 'another string literal' bar.

By default, variables are printed according to their write format. An alternative format can be specified following the variable names.

write outfile="path/to/file" / foo 1-10 (F,2) bar 11-20 (A).
write outfile="path/to/file" / foo (F10.2) bar (A10).

The WRITE command can be used to create multi-record data.

write outfile="path/to/file" /1 foo /2 bar.


Data Model

The WRITE command is queued as a pending transformation.


See also

PSPP manual for WRITE


CategoryRicottone

SPSS/Write (last edited 2023-06-14 20:07:09 by DominicRicottone)