Using Command Line Arguments
In order for IBM® SPSS® Modeler to open and execute files (such as streams and scripts) in batch mode, you need to alter the initial command (clemb) that launches the software. There are a number of command line arguments, also referred to as flags, that you can use to:
- Connect to a server.
- Load streams, scripts, models, states, projects, and output files. (If you have licensed IBM SPSS Collaboration and Deployment Services Repository, you can connect to a repository and load objects from it.)
- Specify log file options.
- Set default directories for use in IBM SPSS Modeler.
All of the above operations require the use of flags appended to the clemb command. Flags follow the form -flag, where the hyphen precedes the argument itself. For example, using the flag -server in conjunction with the initial argument clemb will connect to the server specified using other flag options.
You can combine the clemb command with a number of other startup flags, such as -server, -stream, and -execute, in order to load and execute streams in batch mode. The following command loads and executes the stream report.str without invoking the user interface:
clemb -server -hostname myserver -port 80
-username dminer -password 1234 -stream report.str -execute
For a complete list of command line arguments, see Command Line Arguments.
- IBM SPSS Modeler states and scripts are also executed in this manner, using the -state and -script flags, respectively. Multiple states and streams can be loaded by specifying the relevant flag for each item.
- Multiple arguments can be combined into a single command file and specified at startup using the @ symbol. See the topic Combining Multiple Arguments for more information.