Combining Multiple Arguments

Multiple arguments can be combined in a single command file specified at invocation by using the @ symbol followed by the filename. This enables you to shorten the command line invocation and overcome any operating system limitations on command length. For example, the following startup command uses the arguments specified in the file referenced by <commandFileName>.

modelerclient @<commandFileName>

Enclose the filename and path to the command file in quotation marks if spaces are required, as follows:

modelerclient @ "C:\Program Files\IBM\SPSS\Modeler\nn\scripts\my_command_file.txt"

The command file can contain all arguments previously specified individually at startup, with one argument per line. For example:

-stream report.str
-Porder.full_filename=APR_orders.dat   
-Preport.filename=APR_report.txt
-execute

When writing and referencing command files, be sure to follow these constraints:

  • Use only one command per line.
  • Do not embed an @CommandFile argument within a command file.