The
%INDTD_PUBLISH_MODEL macro creates the files that are needed to build
the scoring functions and publishes these files to a specified database
in the Teradata EDW. Only the EM_ output variables are published as
Teradata scoring functions.
For more information
about the EM_ output variables, see Fixed Variable Names.
The %INDTD_PUBLISH_MODEL
macro uses some of the files that are created by the SAS Enterprise
Miner Score Code Export node: the scoring model program (score.sas
file), the properties file (score.xml file), and (if the training
data includes SAS user-defined formats) a format catalog.
The %INDTD_PUBLISH_MODEL
macro takes the score.sas and score.xml files and produces the set
of .c and .h files. These .c and .h files are necessary to build separate
scoring functions for each of a fixed set of quantities that can be
computed by the scoring model code.
If a format catalog
is available, the %INDTD_PUBLISH_MODEL macro processes the format
catalog and creates an .h file with C structures. This file is also
necessary to build the scoring functions.
This macro also produces
a script of the Teradata commands that are used to register the scoring
functions on the Teradata EDW.
After this script is
created, the macro uses
SAS/ACCESS Interface to Teradata to run the
script and publish the scoring model files to the Teradata EDW.