BookmarkSubscribeRSS Feed

SAS Intelligent Decisioning: Common Rule Sets

Started 3 weeks ago by
Modified 3 weeks ago by
Views 163

In SAS Intelligent Decisioning when creating rule sets, you can create a Common rule set that can be referenced by many Assignment rule sets.  When an Assignment rule set containing a reference to a Common rule set executes, the Common rule set is executed as if it was defined directly in the Assignment rule set.

 

Let’s look at an example of creating and referencing a Common rule set in SAS Intelligent Decisioning.

 

When creating the Common rule set, you must select the type of Common.

 

1_MK__Common.jpg

Select any image to see a larger version.
Mobile users: To view the images, select the "Full" version at the bottom of the page.

 

Building a Common rule set is the same as building an Assignment rule set.  You can use IF-THEN-ELSE logic and add assignments.  Here is the Common rule set, I have built for this example.

 

2_MK_Common.jpg

 

Next, you need to create a rule set of type Assignment.  Common rule sets can only be referenced in Assignment rule sets; they cannot be referenced in a Filtering rule set.

 

3_MK_Common.jpg

 

In this rule set, select Add rule and then select Common rule set reference to open the Add Common Rule Set References dialog.

 

4_MK_Common.jpg

 

Note: If rules have already been added to this assignment rule set, then you select Add > Add reference.

 

First step, select the Common rule sets, you want to add as a reference, then select Next.

 

5_MK_Common.jpg

 

Second step, select the version to reference for each of the selected Common rule sets, then select Next.

 

6_MK_Common.jpg

 

Note: If this referenced version of the Common rule set changes, then the new logic is used by this Assignment rule set.

 

Third step, map the input variables.  You can select Add Missing Variables to automatically add the input variables from the Common rule set to the Assignment one you are creating.

 

7_MK_Common.jpg

 

Fourth step, map the output variables.  You can select Add Missing Variables to automatically add the output variables from the Common rule set to the Assignment one you are creating.

 

8_MK_Common.jpg

 

Fifth step, order the selected Common rule set references using the arrow buttons and select Finish.

 

9_MK_Common.jpg

 

The Common rule set(s) are referenced in the Assignment rule set.  You can add other rules within this Assignment rule set and test and publish this Assignment rule set that contains a reference to the Common rule set as needed.

 

10_MK_Common.jpg

 

You can also expand any referenced Common rule set to view its current logic.

 

11_MK_Common.jpg

 

Summary

 

The use of Common rule sets allows for reusability of rule logic and if a change is needed, then you only need to make it in one place.  For more information, refer to the SAS Intelligent Decisioning documentation on Rule Set Types.

 

 

Find more articles from SAS Global Enablement and Learning here.

Version history
Last update:
3 weeks ago
Updated by:
Contributors

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags