%INDHD_PUBLISH_MODEL Macro Syntax

Arguments

DIR=input-directory-path

specifies the local directory where the scoring model program, the properties XML file, the analytic store file (if analytic store scoring), and the optional format catalog are located.

This is the directory that is created by the SAS Enterprise Miner Score Code Export node or the SAS Factory Miner HPFOREST or HPSVM components. This directory contains the score.sas file, the score.xml file or (if analytic store scoring) score.sasast file, and (if user-defined formats were used) the format catalog.
Requirement You must use a fully qualified pathname.
Interaction If you do not use the default filenames that are created by SAS Enterprise Miner, you must specify the DATASTEP=, XML=, STORE= (if analytic store scoring), and FMTCAT= (if needed) arguments.
See Special Characters in Directory Names

MODELNAME=name

specifies the model name. This name is used to create the HDFS directory, in the directory path specified by the MODELDIR option. The model files (the SAS program, the DS2 program, the score.xml file, and the XML file for user-defined formats) are placed in the HDFS directory.

Requirement The model name must be a valid SAS name. There is no limit on the number of characters in the model name. For more information about valid SAS names, see the topic on rules for words and names in SAS Language Reference: Concepts.

MODELDIR=hdfs-directory-path

specifies the base HDFS path where the scoring model directory is located.

Restriction You must use a fully qualified pathname.
See Special Characters in Directory Names

DATASTEP=score-program-filename

specifies the name of the scoring model program file that was created by using the SAS Enterprise Miner Score Code Export node or the HPSVM or HPFOREST component.

Default score.sas
Restriction Only DATA step programs that are produced by the SAS Enterprise Miner Score Code Export node or the SAS Factory Miner HPSVM or HPFOREST component can be used.
Requirement The scoring model program file must be located in the DIR directory.
Interaction If you use the default score.sas file that is created by the SAS Enterprise Miner Score Code Export node or the SAS Factory Miner HPSVM or HPFOREST component, you do not need to specify the DATASTEP= argument.

XML=xml-filename

specifies the name of the properties XML file that was created by the SAS Enterprise Miner Score Code Export node.

Default score.xml
Restriction Only XML files that are produced by the SAS Enterprise Miner Score Code Export node can be used. This argument is not applicable for analytic store models generated by SAS Factory Miner.
Requirement The properties XML file must be located in the DIR directory.
Interactions If you use the default score.xml file that is created by the SAS Enterprise Miner Score Code Export node, you do not need to specify the XML= argument.
If you specify both the XML= and STORE= arguments, the XML= argument is ignored and a warning is printed to the SAS log. The XML= argument is used for traditional model scoring. The STORE= argument is used for analytic store scoring.
See STORE=analytic-store-filename

STORE=analytic-store-filename

specifies the filename of the analytic store.

Default score.sasast
Restriction Only analytic store files that are produced by the SAS Factory Miner HPFOREST or HPSVM components can be used.
Interactions If an analytic store file exists in the input directory (DIR=), the %INDHD_PUBLISH_MODEL macro attempts to publish that object. Alternatively, you can specify the name of the analytic store in the STORE= argument.
If you specify both the XML= and STORE= arguments, the XML= argument is ignored and a warning is printed to the SAS log. The XML= argument is used for traditional model scoring. The STORE= argument is used to analytic store scoring.
See DIR=input-directory-path
XML=xml-filename

FMTCAT=format-catalog-filename | libref.format-catalog-filename

specifies the name of the format catalog file that contains all user-defined formats that were created by the FORMAT procedure and that are referenced in the DATA step scoring model program.

Restriction Only format catalog files that are produced by the SAS Enterprise Miner Score Code Export node or the SAS Factory Miner HPFOREST or HPSVM component can be used.
Interactions If you use the default format catalog that is created by the SAS Enterprise Miner Score Code Export node or the SAS Factory Miner HPFOREST or HPSVM component, you do not need to specify the FMTCAT= argument.
If you do not use the default catalog name (FORMATS) or the default library (WORK or LIBRARY) when you create user-defined formats, you must use the FMTSEARCH system option to specify the location of the format catalog. For more information, see PROC FORMAT in the Base SAS Procedures Guide.
Notes The format catalog is stored locally and is copied to the HDFS to the same directory where the metadata file is stored.
The analytic store file includes format catalog information. However, you can specify a different format catalog by using the FMTCAT= argument.

ACTION=CREATE | REPLACE | DROP

specifies one of the following actions that the macro performs:

CREATE

creates a new set of model files.

Tip If the model files have been previously defined and you specify ACTION=CREATE, an error occurs.

REPLACE

overwrites the current set of model files.

DROP

deletes the current set of model files.

Default CREATE
Note If the current files do not exist and you specify REPLACE or DROP, an error occurs.

TRACE=YES | NO

specifies whether debug messages are displayed.

Default NO