OUTPUT CLOSE

The OUTPUT commands (OUTPUT NEW, OUTPUT NAME, OUTPUT ACTIVATE, OUTPUT OPEN, OUTPUT SAVE, OUTPUT CLOSE) provide the ability to programmatically manage one or many output documents.

OUTPUT CLOSE [NAME={name1 name2 ...}]
                    {*   }
                    {ALL }

This command takes effect immediately. It does not read the active dataset or execute pending transformations. See the topic Command Order for more information.

Release History

Release 29.0.1

  • Added support for multiple output documents.

Release 15.0

  • Command introduced.

Example

GET FILE='/examples/data/Males.sav'.
FREQUENCIES VARIABLES=ALL.
OUTPUT SAVE OUTFILE='/examples/output/Males.spv'.
OUTPUT CLOSE *. 

GET FILE='/examples/data/Females.sav'.
FREQUENCIES VARIABLES=ALL.