Overview (SCRIPT command)
SCRIPT runs a script to customize the program or automate regularly performed
tasks. You can run a Basic script or a Python script.
Basic specification
The basic specification is keyword SCRIPT with a filename.
The filename is required. The optional quoted string, enclosed in parentheses, can be passed to the
script.
PYTHONVERSION keyword
The PYTHONVERSION keyword specifies the Python 3 processor
to run the script.
Note: When PYTHONVERSION is specified, it
must occur before the filename.
Operations
-
SCRIPTruns the specified script, and works in both local and distributed mode. The effect is the same as opening the script file in the script editor (Basic or Python) and running it from there.
Limitations
- Python scripts run from the
SCRIPTcommand cannot execute command syntax. - The
SCRIPTcommand is not supported in the IBM® SPSS® Statistics Batch Facility (available with IBM SPSS Statistics Server).