%INDSP_RUN_MODEL Macro Syntax

Note: The %INDSP_PUBLISH_MODEL and the %INDSP_RUN_MODEL must be run from sessions that use the same encoding or locale.
%INDSP_RUN_MODEL
( MODELNAME=name, INDATA=input-table-name
<, OUTDATA=output-table-name>
<, KEEP=variable-keep-list>
<, OUTDIR=sample-sql-directory>
<, THREADS=number-of-threads>
);
Arguments

MODELNAME=name

specifies the name of the model.

Requirement The model name cannot exceed ten characters and must be a valid SAS name. For more information about valid SAS names, see the topic on rules for words and names in SAS Language Reference: Concepts.
Interaction modelname is also used to create the output table name (modelname_OUT) if a name is not specified in the OUTDATA= argument.
Tip When the model is published, the modelname_THR SPD Server table is created in the INDCONN domain.

INDATA=input-table-name

specifies the name of the SPD Server table to be used as input to the scoring model.

Restriction The table must exist in the INDDATA domain.

OUTDATA=output-table-name

specifies the name of the SPD Server table created as output from the scoring model.

Default modelname_OUT
Note The table is created in the INDDATA domain.

KEEP=variable-keep-list

specifies a list of variables to keep in the output table.

Requirement The variables in the list must be separated by spaces.
Example
keep=id em_eventprobability em_classification

OUTDIR=sample-sql-directory

specifies a directory that contains the sample SQL code (SampleSQL.txt).

Tip This argument is useful when testing your scoring models. If you do not specify this directory, the sample SQL code is not available after the model runs.
See For more information about the SampleSQL.txt file, see Querying Scoring Output Tables.
Special Characters in Directory Names

THREADS=number-of-threads

specifies the number of threads to use when the model is run.

Default 1