Starting a Batch Job
To run Batch Facility in batch mode, use this command at the prompt:
statisticsb -f syntaxfile -type outputtype -out outputfile
where syntaxfile is replaced by the name of your command syntax file, outputtype is a valid output type (text, html, sav, or oxml), and outputfile is replaced by name of the file where the output is placed. If the file path contains spaces, the path must be enclosed in double quotes.
For example, the command:
statisticsb -f "C:\syntaxjobs\bank.sps" -type text -out C:\output\bank.txt
will run the command syntax file bank.sps and put text output into bank.txt.
One command syntax file name is allowed on the command line. Additional command line parameters are described in this guide. See the topic Command Line Switches for more information.
If you have a profile, the commands in the profile will be processed before the commands in your command syntax file. See the topic Using an Automatic Batch Facility Profile for more information.