Scénario de test & Cas d'usage
Data indexing and search functionalities.
Discover all actions of searchAnalyticsCreating a dataset with mixed case, special characters (#, @), and null values.
| 1 | DATA mycas.social_posts; LENGTH post_content $100; INFILE DATALINES truncover; INPUT post_content $ &; DATALINES; |
| 2 | #SummerVibes #2025 |
| 3 | !!! BREAKING NEWS !!! |
| 4 | @user_handle check this out |
| 5 | leading spaces test |
| 6 | |
| 7 | NOTE: The line above was empty |
| 8 | ; RUN; |
| 9 | |
| 10 | PROC CAS; search.buildTermIndex / TABLE={name='social_posts'} docId='post_content' casOut={name='social_terms', replace=true}; RUN; |
| 1 | |
| 2 | PROC CAS; |
| 3 | searchAnalytics.buildAutoComplete / index={name='social_terms'} casOut={name='social_autocomplete', replace=true}; |
| 4 | |
| 5 | RUN; |
| 6 |
| 1 | |
| 2 | PROC CAS; |
| 3 | TABLE.promote / name='social_autocomplete' targetLib='casuser'; |
| 4 | |
| 5 | RUN; |
| 6 |
The action completes without error. Special characters are either indexed (if supported by the underlying engine) or stripped, but the process does not crash. The output table 'social_autocomplete' is created, demonstrating the action's robustness against dirty input data.