Create and Upload a Model Template

In this exercise, you create a new model template using the SAS Model Manager Template Editor. For information about creating a model template, see the SAS Model Manager: User's Guide.
To create a model template, follow these steps:
  1. Open the SAS Model Manager Template Editor. Select Toolsthen selectManage Templates.
  2. Open an empty model template in the template editor. Select Filethen selectNew Model Template. An empty, untitled model template opens.
  3. Specify the model template properties.
    1. In the Name field, replace Untitled Template with ProcArborModelTemplate.
    2. Click the Type box and select Classification Model.
    3. In the Tool field, enter SAS Enterprise Miner.
    4. In the Display Name field, enter Proc Arbor Model.
    5. Click the Score Code Type box and select Data step.
    Here is the template editor after this step has been completed:
    The Template Editor after naming the template
  4. Add the model component files and the model component file properties.
    The following table lists the model component files that comprise the model, and the properties for each file. For each model component file, add an entry under FileList. Then, select the file under FileList and enter the properties for that file. A value of none indicates that you do not need to set a value for that property.
    To add the model component files, right-click FileList and select New File Item. In the Name field, enter the name from the table and click OK.
    Here is the template after adding the file score.code as a model component file:
    The Template Editor after adding a model component file
    ProcArborModelTemplate Component Files and Component File Properties
    Filename
    Description
    Required
    Report
    Type
    Fileref
    score.sas
    Score code for Proc Arbor model
    none
    select the box
    text
    ScoreCod
    modelinput.sas7bdat
    Model input table
    none
    select the box
    binary
    none
    modeloutput.sas7bdat
    Model output table
    none
    select the box
    binary
    none
    inputvar.xml
    Input variable XML file
    none
    select the box
    text
    Input
    outputvar.xml
    Output variable XML file
    none
    select the box
    text
    Output
    target.sas7bdat
    Target variable table
    select the box
    select the box
    binary
    Target
    importance.sas7bdat
    Variable relative importance
    none
    select the box
    binary
    none
    path.sas7bdat
    Path information
    none
    select the box
    binary
    none
    rules.sas7bdat
    Node rules
    none
    select the box
    binary
    none
    nodestat.sas7bdat
    Node statistics
    none
    select the box
    binary
    none
  5. Add a system property.
    1. In the left pane, right-click System and select New Property. In the Name field, enter Modeler and click OK.
    2. Select Modeler and enter the following property values:
      Description
      The model creator.
      Display Name
      Modeler
      Default values are used for all other property values. Here is the template after the system property has been added:
      The template editor after adding a system property.
  6. Add user properties.
    The following table lists user properties for the model template and the properties of each user property. For each user property, add an entry under User. Then, select the property under User and enter the properties for the user property. A value of none indicates that you do not need to set a value for that property.
    To add a user property, right-click User and select New Property. In the Name field, enter the name from the table and click OK.
    Here is the template after the user property Citi1 has been added:
    The template editor after adding a user property
    ProcArborModelTemplate User Properties and User Property Properties
    Filename
    Description
    Type
    Edit
    Required
    Initial Value
    Display Name
    Citi1
    none
    String
    select the box
    none
    none
    Citi1
    Citi2
    none
    String
    select the box
    none
    none
    Citi2
    Citi3
    none
    String
    select the box
    none
    none
    Citi3
    Citi4
    none
    String
    select the box
    none
    none
    Citi4
    Citi5
    none
    String
    select the box
    none
    none
    Citi5
  7. Save the template. Saving the template creates a backup of the template. Select Filethen selectSave As and enter ProcArborModelTemplate.xml in the File name field. Click OK.
    Here is the model template after all files and properties have been added to the template:
    The model template with all properties defined.
  8. Select Filethen selectUpload File to upload the template to the SAS Content Server. In the Upload File window, verify the information and click OK.
  9. Select Filethen selectExit to close the SAS Model Manager Template Editor.