/* */

SASTechies

Place to learn SAS and enhance your professional career...

Rather than using convoluted techniques to count the occurences of  a word in a String...One can use the COUNT() function in SAS9 to get the results...


data _null_ ;
     sentence='Are you sure You are working to Learn SAS' ;
     num=count(sentence,'are','i') ;
     put num= ;
run ;

The results here is 2 ...u guessed it right !!!

0 comments:

Post a Comment





Technology Top Blogs Programming Blogs - BlogCatalog Blog Directory TopOfBlogs Blog Directory blogarama - the blog directory blog search directory Blog Directory - OnToplist.com hihera.com On our way to 1,000,000 rss feeds - millionrss.com Increase Page Rank