Command Line Examples

Batch text output. Submits a command syntax file to the Batch Facility to be processed in batch mode and directs text output to a file:

statisticsb -f tables.sps -out tables.txt

Batch HTML output. Submits a command syntax file to the Batch Facility to be processed in batch mode and directs HTML output to a file:

statisticsb -f tables.sps -type html -out tables.htm

Interactive mode. Runs the Batch Facility in interactive mode:

statisticsb

Interactive syntax rules. Runs the Batch Facility using interactive syntax rules in batch mode (needed for BEGIN PROGRAM-END PROGRAM and BEGIN GPL-END GPL syntax blocks):

statisticsb -f myprogramblock.sps -i

Tab-separated text. Produces tab-separated text output:

statisticsb -f tables.sps -t -out tables.txt

Custom row and column separators for text tables. Uses a blank as the row separator and "+" as the column separator for tables in text output:

statisticsb -f tables.sps -rs " " -cs "+" -out tables.txt

Suppress output items. Outputs only pivot tables, suppresses all other output items. Any output items that do not appear in a show-or-hide list revert to the default display, so the -show P is not strictly required--it is there for clarity.

statisticsb -f tables.sps -show P -hide T -out tables.txt

Suppress pivot table layers. Outputs only the first layer of the pivot table.

statisticsb -f tables.sps -nl

Produce only the Regression ANOVA tables. Outputs only Regression ANOVA tables.

statisticsb -f regr.sps -keep Regression_Table_ANOVA