Scénario de test & Cas d'usage
Simulating 48 hours of server error counts. Most hours are stable (low errors), but hour 35 has a massive spike due to a simulated outage.
| 1 | |
| 2 | DATA mycas.ServerLogs; |
| 3 | DO i=1 to 48; |
| 4 | HourID=i; |
| 5 | IF i=35 THEN ErrorCount=150; |
| 6 | ELSE ErrorCount=10 + floor(rand('uniform')*5); |
| 7 | OUTPUT; |
| 8 | END; |
| 9 | |
| 10 | RUN; |
| 11 |
| 1 | |
| 2 | PROC CAS; |
| 3 | spc.cChart / TABLE={name='ServerLogs'} processValue='ErrorCount' subgroupValue='HourID' exChart=true limitN=1 chartsTable={name='DashboardData', replace=true}; |
| 4 | |
| 5 | RUN; |
| 6 |
The action should NOT display a visual chart for the stable periods. It should produce output/visualization specifically focusing on the exception at Hour 35. The 'mycas.DashboardData' table should be created containing the control limits and the flagged exception data.