The use of parameters with SAS Allowance for Credit Loss can be found at each step of your business workflow. Parameters allow users to adjust an existing script to their own business needs. For example you may be running your credit analysis task and using a probability of default model. Instead of writing a new script for every business need, you can simply add a parameter that would allow the user to adjust the script. A simple example would be adjusting for time; month, quarter, year.
You can define the script parameters using the parameter builder. The parameter builder enables you to choose the components needed for user input within the user interface. You can also arrange the layout of the components, size the components, and define the interactions between the components.
A parameter component is an input object that allows users to select or define values within a process flow task. For example, when creating a cycle, you can select a calendar date for the start date of that cycle. Modifying the parameters from within the UI can let the users select input values without having to create multiple scripts to account for each parameter component.
Here are some sample parameter builder components that can be used when creating or modifying a script:
On the Parameters tab, the following page sections are available:
Select any image to see a larger version.
Mobile users: To view the images, select the "Full" version at the bottom of the page.
Interactions are sets of instructions that can be used to assign variables, apply if/else logic, call and execute functions, and so on. Fundamentally, interactions are programmable scripts that can be created from within the parameter builder. Interactions consist of one or more logical steps.
Interactions can be used to set the values of certain types of components and enable the interaction between different fields based on their entered or selected values.
From the Components pane, drag-and-drop a component into the Builder section. Once the component is available in the Builder section, the component refers to a parameter for your script. Repeat this step to add more parameters to the Builder section.
Create an interaction or modify any existing interactions for the component.
When you are satisfied with your parameters, click Save. After you have created and saved your selected components and interactions, it is best practice to test and validate that the components are performing as designed. You can test and validate the components by creating an analysis run with the script in which you changed the components.
You can then reference the parameters in your script code using the following syntax: ${Params.<parameter ID>}.
For more information on parameters and scripts can be found in the Using SAS Allowance for Credit Loss course.
Find more articles from SAS Global Enablement and Learning here.
The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.