Add model component files to an existing SAS Decision Manager model.
specifies an identifier of the model in the SAS Decision Manager model repository. The identifier specifies the location in the SAS Decision Manager model repository where the file is to be added. path-to-model can be either a SAS Decision Manager UUID or a SAS Decision Manager path. ModelId is a required argument. The default value is the value of the _MM_CId macro variable.
Examples | ModelId=8904daa1-0a29-0c76-011a-f7bb587be79f |
ModelId=//ModelManagerDefaultRepo/MMRoot/DDHMEQ/HomeEquity/1.0/Models/HMEQ%20Loan%20Project | |
ModelId=//ModelManagerDefaultRepo/MMRoot/DDHMEQ/HomeEquity/1.0/Models/HMEQ Loan Project |
specifies the location of the SAS data set to add to a model in the SAS Decision Manager model repository. SAS-data-set-reference must be a two-level SAS name in the form libref.filename.
Example | SASDataFile=mysaslib.hmeqloan |
specifies the location of a SAS catalog that includes of one or more SAS code model component files to add to a model in the SAS Decision Manager repository. SAS-catalog-reference must be a two-level SAS name in the form libref.catalog. Use the SASCatalog argument to add the catalog to a model.
Example | SASCatalog=mylib.modelinput |
specifies the file reference to the location of a SAS code model component file that is an ASCII text file. fileref-to-text-file is a one-level SAS reference to a model component file.
Example | TextFile=inputxml |
specifies the file reference to the location of a SAS code model component file that is a binary file. fileref-to-binary-file is a one-level SAS reference to a model component file that is not a text file.
Example | BinaryFile=gainscsv |
specifies a name for the file that you are adding. Use the Name argument when your model component filename does not follow the SAS Decision Manager model component file naming convention that is specified in the model's template file or your model requires a file to have a particular filename. If Name is not specified, the filename that is registered is the name of the file.
Example | Name=score.sas |
specifies whether to supply verbose trace messages to the SAS log.
Default | OFF |
Example | Trace=on |
/***************************************************/ /* Adding a file to a registered model. */ /***************************************************/ Options NOmlogic NOmprint NOspool; /***************************************************/ /* Get the Model Management macro code. */ /***************************************************/ Filename MMAccess catalog 'SASHELP.modelmgr.AccessMacros.source'; %include MMAccess; /***************************************************/ /* A LIBNAME for a table. */ /***************************************************/ LIBNAME mtbls 'c:\mysascode'; /***************************************************/ /* Set to detect failure in case macro load fails */ /* and add the input data source. */ /***************************************************/ %let _MM_RC= -1; %MM_AddModelFile( ModelId= //ModelManagerRepo/MMRoot/HomeEquity/HMEQ/1.0/hmeqDecTree1, Name=modelinput.sas7bdat, SASDataFile=mtbls.myInputVariables, Trace=Off ); /***************************************************/ /* A FILENAME for a text file. */ /***************************************************/ FILENAME tcode 'c:\myModel\inputvar.xml'; /***************************************************/ /* Set to detect failure in case macro load fails */ /* and add the xml file for the input data source */ /***************************************************/ %let _MM_RC= -1; %MM_AddModelFile( ModelId= //ModelManagerRepo/MMRoot/HomeEquity/HMEQ/1.0/hmeqDecTree1, TextFile=tcode, Trace=on);