Action Principale : buildTermIndex
| 1 | DATA casuser.myDocs(label="Table de documents bruts"); |
| 2 | LENGTH docid 8 text $200; |
| 3 | INFILE DATALINES dsd; |
| 4 | INPUT docid text $; |
| 5 | DATALINES; |
| 6 | 1,SAS Viya has powerful CAS actions. |
| 7 | 2,Search analytics in SAS is great. |
| 8 | 3,This is another document about SAS. |
| 9 | ; |
| 10 | RUN; |
| 11 | |
| 12 | DATA casuser.myTermList(label="Table de termes pré-calculés"); |
| 13 | LENGTH _Term_ $ 20 _Parent_ 8; |
| 14 | INFILE DATALINES dsd; |
| 15 | INPUT _Term_ $ _Parent_; |
| 16 | DATALINES; |
| 17 | sas,1 |
| 18 | viya,1 |
| 19 | cas,1 |
| 20 | ACTION,1 |
| 21 | search,2 |
| 22 | analytics,2 |
| 23 | sas,2 |
| 24 | index,3 |
| 25 | term,3 |
| 26 | sas,3 |
| 27 | ; |
| 28 | RUN; |