%let _MM_Service_Registry_URL=
%str(http://your-server.com:7980/SASWIPClientAccess/remote/ServiceRegistry);
%let _MM_User = user_ID;
data _null_;
infile pwfile obs=1 length=l;
input @;
input @1 line $varying1024. l;
call symput('_MM_Password',substr(line,1,l));
run;
filename file1 catalog 'sashelp.modelmgr.accessmacros.source'; %include file1; filename file1; filename file2 catalog 'sashelp.modelmgr.mdlmgr_addfolder.source'; %include file2; filename file2; filename file3 catalog 'sashelp.modelmgr.mdlmgr_addproject.source'; %include file3; filename file3; filename file4 catalog 'sashelp.modelmgr.logtrace.source'; %include file4; filename file4; filename file5 catalog 'sashelp.modelmgr.mdlmgr_addversion.source'; %include file5; filename file5; filename file6 catalog 'sashelp.modelmgr.mdlmgr_setproperty.source'; %include file6; filename file6;
%mdlmgr_AddFolder(ParentId=, Name=, Desc=, NewFolderId=, Trace=); %mdlmgr_AddProject(ParentId=, Name=, Desc=, ModelFunction=, InputVarTable=, OutputVarTable=, NewProjectId=, Trace=); %mdlmgr_AddVersion(ParentId=, Name=, Desc=, NewVersionId=, Trace=); %mdlmgr_SetProperty(FolderId=, Table=, PropertyType=, FolderType=, Trace=);
NewProject=projectId
,
the variable name projectId is used to create the global macro variable
%projectId. The &projectId macro reference can now be used as
the value of the ParentId= argument in the %mdlmgr_AddVersion( ) macro, ParentId=&projectId
.
The same macro reference can be used as a value for the FolderId=
argument in the %mdlmgr_SetProperty( ) macro, FolderId=&projectId
.
:sas-libraries
,
must be lower case. For more information, see
Specifying Data Sets.:sas-library
must
be appended to libref.table in
lower case (for example, MySASLib.Property:sas-library
and Work.ProjProp:sas-library
).
Libraries that are defined in the SAS Metadata Repository do not require
the appended text.
Property Name
|
Property Name As It
Appears in the SAS Model Manager
|
Valid Values
|
||||||||
---|---|---|---|---|---|---|---|---|---|---|
ClassificationRole
|
Output Event Probability
Variable
|
A text string that specifies
the output event probability variable.
Set for a project with
a model function of classification.
|
||||||||
ClassTargetEvent
|
Class Event Value
|
A number that represents
the target event value.
Set for a project.
|
||||||||
ClassTargetEventValues
|
Class Target Values
|
A text string that represents
the class target values.
Set for a project.
|
||||||||
ClassTargetLevel
|
Class Target Level
|
One of the following
text strings:"BINARY", "NOMINAL", "ORDINAL",
or "INTERVAL"
Set for a project.
|
||||||||
ClassTargetVar
|
Training Target Variable
|
A text string that indicates
the training target variable
Set for a project.
|
||||||||
EventProbabilityRole
|
Output Event Probability
Variable
|
A text string that specifies
the output event probability variable.
Specify this property
only if you specify the outputVarTable= argument in the %mdlmgr_AddProject(
) macro. The value of EventProbabilityRole must be a variable in the
project output table.
Set for a project.
|
||||||||
Function
|
Model Function
|
A text string that specifies
the model function. Valid values are "CLASSIFICATION", "PREDICTION",
"SEGMENTATION", and "ANALYTICAL".
Set for project,
|
||||||||
InterestedParty
|
Interested Party
|
A text string that specifies
a person or group that has an interest in the project.
Set for a project.
|
||||||||
MetadataLock
|
Lock Project Metadata
|
Specify "YES"
or "NO" to indicate whether the project metadata is locked.
Set for a project.
|
||||||||
PredictionRole
|
Output Prediction Variable
|
A text string that specifies
the output prediction variable.
Set for a project with
a model function of prediction.
|
||||||||
ProjectInputDS
|
None, it is used to
create inputvar.xml.
|
The project input table
in the form libref.table.
Set for a project.
|
||||||||
ProjectOutputDS
|
None, it is used to
create outputvar.xml.
|
The project output table
in the form libref.table.
Set for a project.
|
||||||||
ResponseDS
|
Default Performance
Table
|
The default performance
table in the form libref.table.
Set for projects and
versions.
|
||||||||
ScoreInputDS
|
Default Scoring Input
Table
|
The default scoring
test input table in the form libref.table.
Set for projects and
versions.
|
||||||||
ScoreOutputDS
|
Default Scoring Output
Table
|
The default scoring
test output tablet in the form libref.table.
Set for projects and
versions.
|
||||||||
SegmentRole
|
Output Segmentation
Variable
|
A test string that specifies
the output segmentation variable.
Set for a project with
a model function type of segmentation.
|
||||||||
State
|
State
|
Select one:
Set for a project.
|
||||||||
TestDS
|
Default Test Table
|
The default test table
in the form libref.table.
Set for projects and
versions.
|
||||||||
TrainDS
|
Default Train Table
|
The default train table
in the form libref.table.
Set for projects and
versions.
|
data HMEQProp; length name $20.; length value $40.; input name $ value$; datalines; TestDS MMLIB.HMEQ_TEST ScoreInputDS MMLIB.HMEQ_SCORE_INPUT ScoreOutputDS MMLIB.OUTPUT TrainDS MMlib.HMEQ_TRAIN ResponseDS PERFDS.2013Q1:sas-library ClassTargetEvent 1 ClassTargetLevel BINARY EventProbabilityRole SCORE ClassTargetVar BAD ; run;
:sas-library
to
be appended to the libref.table value.
Libraries that are defined in the SAS Metadata Repository do not require
the appended text.