%INDHD_PUBLISH_MODEL Syntax

%INDHD_PUBLISH_MODEL
( DIR=input-directory-path
, MODELNAME=name
, MODELDIR=hdfs-directory-path
<, DATASTEP=score-program-filename>
<, XML=xml-filename>
<, FMTCAT=format-catalog-filename | libref.format-catalog-filename>
<, ACTION=CREATE | REPLACE | DROP>
<, TRACE=YES | NO>
);
Arguments

DIR=input-directory-path

specifies the local directory where the scoring model program, the properties XML file, and the optional format catalog are located.

This is the directory that the SAS Enterprise Miner Score Code Export node creates.
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=, and (if needed) FMTCAT= 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.

Default score.sas
Restriction Only DATA step programs that are produced by the SAS Enterprise Miner Score Code Export node 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, 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.
Requirement The properties XML file must be located in the DIR directory.
Interaction 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.

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 can be used.
Interactions If you use the default format catalog that is created by the SAS Enterprise Miner Score Code Export node, 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.
Note The format catalog is stored locally and is copied to the HDFS to the same directory where the metadata file is stored.

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