The %MM_PublishPortfolioModelsDBmacro is used for publishing models from a portfolio to a database.
Requirement: | The macro is limited to publishing the project champion models whose score code type is DATA step. The publishing of SAS analytic store models is not currently supported. |
Specifies the type of database (for example, Teradata).
Specifies the name of the database server.
Specifies the user name for the database.
Specifies the password for the database user.
Specifies the name of the model property SAS data set that is generated from the %MM_CreateModelDataset macro.
Specifies the directory path where to store the publish results.
filename pubdb catalog 'SASHELP.modelmgr.MM_PublishPortfolioModelsDB.source'; %include pubdb ; filename pubdb ; %let Database=myDatabase; %let dbType=Teradata; %let Server=myTeradataServer; %let User = %nrbquote(myDatabaseUserName); %let Password = %nrbquote(myDatabasePassword); %MM_PublishPortfolioModelsDB( dbType =&dbType , dbServer =&Server, dbUser =&User, dbPassword=&Password, database =&Database, modelDS=_models, outputDir=%nrstr(C:\temp\FMScore) );