To run the
%INDAC_PUBLISH_MODEL macro, complete the following
steps:
-
Create a scoring model
using SAS Enterprise Miner.
-
Use the SAS Enterprise
Miner Score Code Export node to create a score output directory and
populate the directory with the score.sas file, the score.xml file,
and, if needed, the format catalog.
-
Start SAS 9.2 and submit
the following commands in the Program Editor or Enhanced Editor:
%indacpm;
%let indconn = user=myuserid password=XXXX
dsn=ncluster | server=myserver database=mydatabase;
The %INDACPM macro searches
the autocall library for the indacpm.sas file. The indacpm.sas file
contains all the macro definitions that are used in conjunction with
the
%INDAC_PUBLISH_MODEL
macro. The indacpm.sas file should be in one of the directories listed
in the SASAUTOS= system option in your configuration file. If the
indacpm.sas file is not present, the %INDACPM macro call (%INDACPM;
statement) issues the following message:
macro indacpm not defined
The INDCONN macro variable
is used to provide credentials to connect to Aster
nCluster. The value of the INDCONN macro variable
for the
%INDAC_PUBLISH_MODEL macro has this format:
USER=
user PASSWORD=
password connection-string
The
connection–string argument can be expressed
in either of the following forms:
-
-
SERVER=
servername DATABASE=
databasename
You must specify user,
password, and either a DSN name or a server and database name.
Note: You can use only PASSWORD=
or PW= for the password argument. Other aliases such as PASS= or PWD=
are not supported and cause errors.
You must assign the
INDCONN macro variable before the
%INDAC_PUBLISH_MODEL macro is invoked.
Tip
The INDCONN macro variable
is not passed as an argument to the
%INDAC_PUBLISH_MODEL macro. This information can be concealed in your SAS
job. You might want to place it in an autoexec file and set the permissions
on the file so that others cannot access the user ID and password.
-
Run the
%INDAC_PUBLISH_MODEL macro.
Messages are written
to the SAS log that indicate the success or failure of the creation
of the .ds2 and .xml scoring files.