Action Principale : aggregate
| 1 | DATA mycas.my_table; |
| 2 | informat date DATE9.; |
| 3 | FORMAT date DATE9.; |
| 4 | INPUT product $ date date9. quantity; |
| 5 | DATALINES; |
| 6 | ProductA 01JAN2023 10 |
| 7 | ProductB 01JAN2023 20 |
| 8 | ProductA 02JAN2023 15 |
| 9 | ProductC 02JAN2023 30 |
| 10 | ProductB 03JAN2023 25 |
| 11 | ProductA 03JAN2023 12 |
| 12 | ; |
| 13 | RUN; |