Action Principale : applyCategory
| 1 | PROC CAS; |
| 2 | datastep.runCode / code='data mycas.reviews; |
| 3 | length docId $ 50; |
| 4 | length text $ 300; |
| 5 | infile datalines delimiter="|"; |
| 6 | input docId $ text $; |
| 7 | datalines; |
| 8 | doc1|The food was great and the service was excellent. |
| 9 | doc2|The room was clean, but the staff was not friendly. |
| 10 | doc3|I enjoyed the movie, the plot was amazing. |
| 11 | doc4|The product broke after a few days, very poor quality. |
| 12 | ; |
| 13 | run;'; |
| 14 | QUIT; |