Return to Snippet

Revision: 8656
at October 2, 2008 13:18 by webonomic


Initial Code
data _null_ ;

  long='a b c d a e d a e t g d a c s' ;

num_a=countc(long,'a') ;

  put num_a= ;

run ;

Initial URL
http://jaredprins.squarespace.com/blog/2008/10/7/some-sas-code-snippets.html

Initial Description

                                

Initial Title
Count up the number of substrings in a string

Initial Tags

                                

Initial Language
SAS