Scoring Task Tabbed Views

Associated with each scoring task are tabbed views that provide you with a complete picture of a scoring task from its creation up through graphing the scoring results. The following is a list of these views:
Tabbed View
Description
Properties
This view contains four groupings of properties, some of which have fields that can be modified. Click Save, when you update any of the properties in this view. The groupings are as follows:
Model Input Variables
This view shows the model input variables.
Input Table
This view shows the variables and attributes of the scoring task input table. For each input variable the model lists in the Model Input Variables, there must be a matching input variable in the input table. The input table can contain additional variables.
Model Output Variables
This view shows the model output variables.
Output Table
This view shows the variables and attributes of the scoring task output table. The value of the Map to Model Variable field must be the Model Output Variable that corresponds to the scoring task output variable in that row.
When this view is displayed for the first time, SAS Model Manager attempts to discern the proper mapping and fills in the initial mapping values for you. If these are not correct or are incomplete, correct them and then click Save at the bottom right of the view.
A Permission Denied message is displayed if a user accesses this view before the creation of the scoring task. Because users who are only in the SAS Model Manager Users group do not have Write access, they cannot perform that task.
Pre-code
This view contains the code that SAS Model Manager generates and places before the model's score code. The SAS Model Manager generated code is enclosed in comment tags. The generated code cannot be changed.
After the generated code, you can append code that you want to have executed before the score code. You can use any variables, library references, or file references that are specified in the generated code section.
Post-code
This view contains the code that SAS Model Manager generates and places after the model's score code. The SAS Model Manager generated code is enclosed. The generated code cannot be changed.
After the generated code, you can append code that you want to have executed after the score code. You can use any variables, library references, or file references that are specified in the generated code section.
SAS Code
This view shows you the model's score code that is executed. This is the code that appears between the pre-code and the post-code. The SAS code cannot be modified from the Scoring Task tabbed view.
To edit SAS code, follow these steps:
  • Select the model in the Project Tree and click on the SAS Code tabbed view.
  • Select the Edit check box in the right corner of that view to make changes to the code.
  • Click Commit to save your changes.
  • Refresh the scoring task's views to see the modified SAS code in this view.
Note that this view shows you the same code as the model's SAS Code view. To see the code that was actually executed for a scoring task, expand the scoring task's folder and select the taskCode.sas file. If you copy this code into a SAS editor window and enter values for the user name and password, you can run the code in SAS.
Results
This view shows three separate views depending on which button you click. Here are descriptions of each view:
  • Result Set is the view of the result data set.
  • Log is the view of the log from the last execution of this scoring task. This is the default view.
  • Output is the view of the listing file from the last execution of this scoring task.
Both the Log and the Output views are from the files taskCode.log and taskCode.lst that can be found in the scoring task's folder.
What is shown in the Result Set view depends on the value of the Scoring Task Type property. If the value of this property is Test then the results are read from the .sas7bdat file that is specified in the Output Table property. This file can be found in the scoring task folder. If the value of this property is Production, then the results are read from the location of the data source that is known to the SAS Metadata Repository. For more information, see Create Scoring Output Tables.
Graph
This view displays graphs of the scoring task output that you create by clicking the Graph Wizard button. For more information, see Graph Scoring Task Results.