Dynamically Choose the Latest Rule Flow Version

You can use the &DCM_USE_LATEST_VERSION and either the &DCM_RULEFLOW_NAME or &DCM_DEPLOYED_RULEFLOW_NAME macro variable to ensure that when a rule flow is run, the latest version of the rule flow is always used. If you specify both &DCM_RULEFLOW_NAME and &DCM_DEPLOYED_RULEFLOW_NAME, then the name specified by &DCM_DEPLOYED_RULEFLOW_NAME is used.
For &DCM_DEPLOYED_RULEFLOW_NAME, specify the name of the published rule flow and the identification number of the rule flow. You can find the published name and identification number in the Name column of the rule flow History page. For example:
%let DCM_DEPLOYED_RULEFLOW_NAME=published_flow_name(ID_number);
Note: If you specify &DCM_RULEFLOW_NAME and SAS Business Rules Manager finds multiple rule flows that match the specified name, it writes an error message in the SAS log, and the rule flow is not executed. If you encounter this issue, specify the specific rule flow by using &DCM_DEPLOYED_RULEFLOW_NAME.
Define these macro variables in preprocessing code such as the Preprocessing Code section of a rule flow test or in the Precode section of the Precode and Postcode tab in SAS Data Integration Studio. Define these variables before calling the %BRM_RULE_FLOW macro. For example:
%let DCM_RULEFLOW_NAME=rule_flow_name;
Note: SAS Data Integration Studio uses the latest version of the rule flow that matches the variable mappings in the Business Rules transformation. SAS Business Rules Manager writes a note in the SAS log that states which version was selected.
Last updated: February 22, 2017