Performance Case: Large-Scale Monitoring Across Multiple Production Lines
Scénario de test & Cas d'usage
Business Context
A large pharmaceutical company monitors the purity level of a drug produced across 100 parallel production lines. To manage this scale, they only want to generate charts for lines that exhibit out-of-control behavior. The analysis must be robust enough to handle a high number of distinct processes.
Create a large dataset named 'DrugPurity' with 100 production lines ('LineID'), each having 50 batches. Intentionally introduce an out-of-control point in Line 'L-042' and Line 'L-088'.
Copied!
data mycas.DrugPurity;\n length LineID $ 8;\n do line = 1 to 100;\n LineID = 'L-' || put(line, z3.);\n do Batch = 1 to 50;\n do i = 1 to 5;\n Purity = 99.5 + 0.1 * rannor(123);\n /* Introduce specific outliers */\n if LineID = 'L-042' and Batch = 30 then Purity = 98.9;\n if LineID = 'L-088' and Batch = 15 then Purity = 100.2;\n output;\n end;\n end;\n end;\nrun;
1
DATA mycas.DrugPurity;
2
LENGTH LineID $ 8;
3
DO line = 1 to 100;
4
LineID = 'L-' || put(line, z3.);
5
DO Batch = 1 to 50;
6
DO i = 1 to 5;
7
Purity = 99.5 + 0.1 * rannor(123);
8
/* Introduce specific outliers */
9
IF LineID = 'L-042' and Batch = 30THEN Purity = 98.9;
10
IF LineID = 'L-088' and Batch = 15THEN Purity = 100.2;
11
OUTPUT;
12
END;
13
END;
14
END;
15
RUN;
Étapes de réalisation
1
Run the boxChart action on the large dataset, grouping by 'LineID'. Use 'exChart=True' to only generate chart data for processes with exceptions. Set a high 'groupByLimit' to ensure all 100 lines are processed.
The action should process all 100 lines without hitting a group limit. The resulting 'PurityExceptions' table should be created but should only contain summary data for 'L-042' and 'L-088', as these were the only lines with points outside the 3-sigma limits (failing Test 1). The distinct count on the result table should return 2.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.