Size: 1084
Comment:
|
← Revision 3 as of 2023-06-14 20:06:46 ⇥
Size: 1284
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
The '''`PRINT`''' command prints data to an external file. | The '''`PRINT`''' command writes data to an external file. Compare to [[SPSS/Write|WRITE]]. The difference is that `PRINT` will begin each line with a space character, and will delimit values with a space character unless an '''output format''' is specified. |
SPSS Print
The PRINT command writes data to an external file. Compare to WRITE. The difference is that PRINT will begin each line with a space character, and will delimit values with a space character unless an output format is specified.
Contents
Usage
print outfile="path/to/file" / foo bar baz. print outfile="path/to/file encoding="1252" / foo bar baz. print outfile="path/to/file" / 'a string literal' foo 'another string literal' bar.
By default, variables are printed according to their print format. An alternative format can be specified following the variable names.
print outfile="path/to/file" / foo 1-10 (F,2) bar 11-20 (A). print outfile="path/to/file" / foo (F10.2) bar (A10).
The PRINT command can be used to create multi-record data.
print outfile="path/to/file" /1 foo /2 bar.
Data Model
The PRINT command is queued as a pending transformation.