Testing a Decision

Input Data for Decision Tests

Decision Builder expects the input data for the decision test to already exist and to be defined as a data source. See About Managing Data Tables for information about defining data sources. Your user ID must have permission to access the data.

Create and Run a New Decision Test

  1. Open the decision that you want to test.
    Note: If you make any changes to the decision, click Save. You cannot create a test for a decision that contains unsaved changes.
  2. Click Test. The New Test window appears.
  3. Enter a name for the test. Names are limited to 100 characters and must be unique. The first character must be alphabetic. Subsequent characters can be numbers, alphabetic characters, or underscores (_).
  4. (Optional) Enter a description. Descriptions are limited to 1024 characters.
  5. Select the data source for the test, and click Open.
    The application automatically maps variables in the decision to columns in the test data source if the variable and column have the same name and the same data type. For other variables, you must manually map the variables to columns in the input data source.
  6. On the Variables tab, under Table Column, select or change the table column for each variable as necessary.
    Note: The application automatically maps variables only when the decision is created. If input or output variables are later added to the decision, you can delete and reselect the input data source to automatically map the additional variables.
  7. (Optional) On the Preprocessing Code tab, enter any SAS code, such as initialization code or setup code, that you want to run before the decision is run.
  8. Click Save to save the decision test.
  9. Click Run to run the test. Decision Builder runs the test and, if the test completely successfully, displays the results. See View Test Results for more information.
  10. Click Close to close the test.

Open an Existing Decision Test

  1. Open the decision.
  2. Click Options and select View Tests. The All Tests window appears.
  3. Select the test that you want to open.

Run an Existing Test

To run an existing test, open the test, and click Run.
If you make any changes to the test, click Save to save the test. You cannot run a test with unsaved changes.
Decision Builder runs the test and, if the test completely successfully, displays the results. See View Test Results for more information.

View Test Results

When you run a test, Decision Builder automatically displays the test results. It also adds a link on the main page for the test to the test results. To view the results that were generated the last time a test was run, open the decision, and click View the results. Decision Builder displays
  • the output of the decision
  • the SAS code that was generated and run when the test was submitted
  • the SAS log
  • information about the output table such as its name and location
  • information about the test itself, including the date on which the test was last run
Last updated: February 22, 2017