boolRule brScore

Legacy System Migration with Custom Mappings

Scénario de test & Cas d'usage

Business Context

An insurance firm is migrating from an older SAS version (HPBOOLRULE) to Viya. Their data schema uses non-standard column names, and the downstream reporting systems expect the old variable naming convention (e.g., _BR_Rule_X_) rather than the new default.
About the Set : boolRule

Extraction of Boolean rules for classification.

Discover all actions of boolRule
Data Preparation

Creation of data with non-standard column names (cust_ref_no instead of docid) to test parameter mapping.

Copied!
1 
2DATA casuser.legacy_claims;
3INPUT cust_ref_no claim_term_code;
4DATALINES;
5999 50 999 51 888 50 ;
6 
7RUN;
8 
9DATA casuser.fraud_rules;
10INPUT ruleid termid;
11DATALINES;
121 50 1 51 ;
13 
14RUN;
15 

Étapes de réalisation

1
Execution using 'useOldNames' to ensure backward compatibility and explicit mapping of custom column names.
Copied!
1 
2PROC CAS;
3boolRule.brScore TABLE={name='legacy_claims', caslib='casuser'} ruleTerms={name='fraud_rules', caslib='casuser'} docId='cust_ref_no' termId='claim_term_code' useOldNames=true casOut={name='legacy_results', caslib='casuser', replace=true};
4 
5QUIT;
6 

Expected Result


The output table 'legacy_results' is created. Crucially, the columns indicating rule matches must be named '_BR_Rule_1_' instead of '_Rule_1_', satisfying the requirement for the legacy reporting system.