About Dependencies

Creating a Basic Custom Task shows how to convert a SAS program to a basic SAS Studio task.. As you become more comfortable creating SAS Studio tasks, you might want to use some of the more advanced features of the common task model, such as dependencies. The Dependencies element specifies how certain options or roles rely on one another in order for the task to work properly.
Here is an example of a dependency that you can create. In the previous chapter, you created the Informat drop-down list with two values: Numeric and Date.
  • If you selected Numeric, the BEST informat was used to create the new numeric variable.
  • If you selected Date, the DDMMYY informat was used to create the new numeric variable.
However, SAS supports additional numeric and date informats. You want to give task users the ability to choose a specific numeric or date informat. After you complete this section, you see the following behavior in the user interface:
  • When you select Numeric from the Informat drop-down list, the Numeric informat drop-down list appears.
    Numeric Informat Options for the Example Task
  • When you select Date from the Informat drop-down list, the Date informat option appears, and the Numeric informat option is hidden.
    Date Informat Options for the Example Task