Example Process Flow Diagram |
You can use a SAS Code node to create a score card of the good credit risk applicants. The SAS Code node enables you to incorporate new or existing SAS code into process flows.
Add a SAS Code node to the data mining workspace.
Connect the Distribution Explorer node to the SAS Code node.
Open the configuration interface to the SAS Code node.
The SAS Code node provides a macro facility to dynamically reference the data sets and variables. Before you write code to screen for (score) the bad credit applicants, determine the name of the macro variable that references the score data set:
Select the Macros tab.
Notice that the name of the macro variable that references the score data set is &_MAC_3.
Select the Program tab and type the following SAS code:
The name of the D_GOOD_BAD_ variable is assigned when the score data set is processed. Make sure you use the correct variable name.
The SAS DATA step reads the observations (customer applicants) from the score data set. The applicants who were assigned to the accept decision are written to the output data set GOODAPPS. These applicants are deemed to be credit-worthy.
The PROC PRINT step produces a list report of the good credit risk applicants. The variable CUSTID identifies the good applicants.
To run the code, click the Run tool icon ( ).
After the code runs, click
in the Message window. Select the Output tab to view the list of good credit risk applicants.Close the SAS Code node.
Copyright © 2006 by SAS Institute Inc., Cary, NC, USA. All rights reserved.