Scénario de test & Cas d'usage
Generate transaction data including a risk profile column to be used for filtering.
| 1 | |
| 2 | DATA mycas.card_transactions; |
| 3 | LENGTH trans_type $15 risk_profile $10; |
| 4 | INPUT account_id day trans_type $ risk_profile $; |
| 5 | CARDS; |
| 6 | 101 1 ATM High 101 20 Online High 102 1 ATM Low 102 2 Online Low 103 5 Online High 103 30 Wire High 104 1 ATM High 104 2 Online High ; |
| 7 | |
| 8 | RUN; |
| 9 |
| 1 | |
| 2 | PROC CAS; |
| 3 | sequence.cspade / TABLE={name='card_transactions', where='risk_profile="High"'} sequenceId='account_id' eventId='day' itemId='trans_type' minGap=10 supportCnt=1 casout={name='fraud_sequences', replace=true}; |
| 4 | |
| 5 | RUN; |
| 6 |
The analysis filters out account 102 (Low risk). It also ignores the rapid sequence of account 104 (gap=1). It successfully identifies the 'Online -> Wire' sequence of account 103 which fits the profile and timing constraints.