Output Type

You can produce text output, HTML output, IBM® SPSS® Statistics data file (.sav), IBM SPSS Statistics Output XML (OXML), or IBM SPSS Statistics Viewer file (.spv)

- type text. Produces plain text output. The output is space-separated by default. Tab-separated output is available with the -t switch. See the topic Formatting Output for more information.

Figure 1. Example text output
Example text output

- type html. Produces HTML output. If there are charts or tree diagrams in the output, these are saved as portable network graphics (PNG) files and are referenced by the HTML. Image files are saved in a separate subdirectory (folder). The subdirectory name is the name of the HTML destination file without any extension and with _files appended to the end. For example, if the HTML destination file is julydata.htm, the images subdirectory will be named julydata_files.

Figure 2. Example HTML output
Example HTML output

- type sav. Produces IBM SPSS Statistics data files. This is a binary file format. The output can include only one pivot table or multiple tables with the same structure. Each column of a table becomes a variable in the data file. If the output contains multiple tables with different structures, use the -keep switch to specify the name of the table that you want in the IBM SPSS Statistics data file. See the topic Controlling Pivot Tables by Name for more information. For more information about this output type, refer to the OMS command in the IBM SPSS Statistics Command Syntax Reference (on the product ISO file). Use the .sav file extension for the output file.

- type oxml. Produces IBM SPSS Statistics Output XML, which is XML that conforms to the spss-output.xsd schema. For information about OXML and the spss-output.xsd schema, refer to the OMS command in the IBM SPSS Statistics Command Syntax Reference (on the product ISO file).

-type spv. Produces IBM SPSS Statistics Viewer files. This is the same format as output files created and saved in the client version of IBM SPSS Statistics.

Note: Output requested with the OUTPUT SAVE command is produced in addition to, and independent of, the Batch Facility output stream described above. The output type for output written by OUTPUT SAVE is determined by the -type switch. For -type text, -type html, or -type oxml, OUTPUT SAVE writes text, HTML, or IBM SPSS Statistics Output XML respectively. OUTPUT SAVE ignores -type sav and creates HTML output instead.