Since SAS Text Miner has incorporated many changes and enhancements after version 5.1, the following response is tailored towards the newer release (version 12.1 and after.)
You can use the attached SAS code in a SAS Code node after a Text Filter node to create a document-by-term data set.
Here are the steps:
- Create a new SAS Code node and connect it after a Text Filter node.
- Open the Code Editor window of the SAS Code node.
- Enter the SAS code above in the Training Code section.
- Save the code and then exit from the Code Editor window.
- Run the SAS Code node.
- Once the SAS Code node runs successfully, the textfilter<n>_termbydocmatrix data set can be found in the corresponding Enterprise Miner project Workspaces folder.
Hope this helps!
Ann