You can use the SAS_SCORE() function in the FROM clause in any SQL expression in
the same way that Aster
nCluster
SQL/MR functions are used.
The syntax of the SAS_SCORE() function is as follows:
FROM SAS_SCORE(ON input-table MODEL('model-name')
<MODEL_SCHEMA('schemal-name>) )
specifies the input
table that is used by the SAS_SCORE() function.
specifies the name
of the model. The value of this argument is the same as the value
of MODELNAME=name argument
for the %INDAC_PUBLISH_MODEL macro.
specifies the name
of the schema where the scoring model files are published.
Restriction: This argument is valid only for Aster
nCluster 4.6. For Aster
nCluster
4.5, the scoring model files are published to the PUBLIC schema.
Default: your default schema. To determine your default schema name, use
the
show search_path
command from the Aster
Client Tool (ACT).
Here is an example of
using the SAS_SCORE function. In this example, the input table is
score_intab and the model name is
reg.
select id, em_classification, em_eventprobability, em_probability
from sas_score (on score_intab model('reg') model_schema('mysch'));