04-23-2015 03:29 PM
I'm trying to right a program which will sum up all the unique words in a variable - this needs to be not case sensitive. I need to use just Base SAS.
|signs that I might be experiencing Candida? A. Here is our list of 100 Common Candida Symptoms associated with systemic. Use zyrtec|
|i a week of sttn.. about 3 weeks ago.. LO had bad allergies so he had to take some zyrtec but he slept sooo good|
|Allergy Aid Cleansing Expert services Are Necessary Some folks are incapable of having a great night's sleep|
So the output I'm looking for is something like this (this is not the full list):
Is there a way to write a do loop? It would obviously way too difficult to you just string functions to do this.
Any assistance is greatly appreciated.
04-23-2015 03:44 PM
A few functions - countw, compress, scan, and lowcase can get you pretty far.
do i=1 to num_words;
word=lowcase(compress(scan(sentence, i), , 'ka'));
proc freq data=words;