Scénario de test & Cas d'usage
Extraction of Boolean rules for classification.
Discover all actions of boolRuleCreation of data with non-standard column names (cust_ref_no instead of docid) to test parameter mapping.
| 1 | |
| 2 | DATA casuser.legacy_claims; |
| 3 | INPUT cust_ref_no claim_term_code; |
| 4 | DATALINES; |
| 5 | 999 50 999 51 888 50 ; |
| 6 | |
| 7 | RUN; |
| 8 | |
| 9 | DATA casuser.fraud_rules; |
| 10 | INPUT ruleid termid; |
| 11 | DATALINES; |
| 12 | 1 50 1 51 ; |
| 13 | |
| 14 | RUN; |
| 15 |
| 1 | |
| 2 | PROC CAS; |
| 3 | boolRule.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 | |
| 5 | QUIT; |
| 6 |
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.