Parameter arguments
Parameters can be used as flags during command line execution of IBM® SPSS® Modeler. In command line arguments, the
-P
flag is used to denote a parameter of the form -P
<name>=<value>.
Parameters can be any of the following:
- Simple parameters (or parameters used directly in CLEM expressions).
- Slot parameters, also referred to as node properties. These parameters are used to modify the settings of nodes in the stream. See the topic Node properties overview for more information.
- Command line parameters, used to alter the invocation of IBM SPSS Modeler.
For example, you can supply data source user names and passwords as a command line flag, as follows:
modelerclient -stream response.str -P:databasenode.datasource="{\"ORA 10gR2\",user1,mypsw,false}"
The format is the same as that of the datasource
parameter of
the databasenode
node property. For more information, see: databasenode properties.
The last parameter should be set to true
if you're passing an
encoded password. Also note that no leading spaces should be used in front of the database user name
and password (unless, of course, your user name or password actually contains a leading space).
Note: If the node is named, you must surround the node name with double quotes and escape the quotes
with a backslash. For example, if the data source node in the preceding example has the name
Source_ABC
the entry would be as follows:
modelerclient -stream response.str -P:databasenode.\"Source_ABC\".datasource="{\"ORA 10gR2\",
user1,mypsw,true}"
A backslash is also required in front of the quotes that identify a structured
parameter, as in the following TM1 datasource
example:
clemb -server -hostname 9.115.21.169 -port 28053 -username administrator
-execute -stream C:\Share\TM1_Script.str -P:tm1import.pm_host="http://9.115.21.163:9510/pmhub/pm"
-P:tm1import.tm1_connection={\"SData\",\"\",\"admin\",\"apple\"}
-P:tm1import.selected_view={\"SalesPriorCube\",\"salesmargin%\"}
Note: If the database name (in the
datasource
property) contains one or more
spaces, periods (also known as a "full stop"), or underscores, you can use the "backslash double
quote" format to treat it as string. For example: "{\"db2v9.7.6_linux\"}"
or:
"{\"TDATA 131\"}"
. In addition, always enclose datasource
string
values in double quotes and curly braces, as in the following example: "{\"SQL
Server\",spssuser,abcd1234,false}"
.