Next: , Up: Invocation


3.1 Non-option Arguments

Syntax files and output device substitutions can be specified on PSPP's command line:

file
A file by itself on the command line will be executed as a syntax file. If multiple files are specified, they are executed in order, as if their contents had been given in a single file. PSPP terminates after the syntax files run, unless the -i or --interactive option is given (see Language control options).
key=value
Defines an output device macro key to expand to value, overriding any macro having the same key defined in the device configuration file. See Macro definitions.

There is one other way to specify a syntax file, if your operating system supports it. If you have a syntax file foobar.stat, put the notation

     #! /usr/local/bin/pspp

at the top, and mark the file as executable with chmod +x foobar.stat. (If PSPP is not installed in /usr/local/bin, then insert its actual installation directory into the syntax file instead.) Now you should be able to invoke the syntax file just by typing its name. You can include any options on the command line as usual. PSPP entirely ignores any lines beginning with ‘#!’.