We Recommend

C++ The Core Language C++ The Core Language
C++: The Core Language is for C programmers transitioning to C++. It's designed to get readers up to speed quickly by covering an essential subset of the language. The subset consists of features without which it's just not C++, and a handful of others that make it a reasonably useful language.


Posted By

webonomic on 10/02/08


Tagged

character String count


Versions (?)


Count up the number of characters in a string


Published in: SAS 


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

  1. data _null_ ;
  2.  
  3. long='dog cat rat bat dog camel dingo snake bigdog' ;
  4.  
  5. num_dog=count(long,'dog') ;
  6.  
  7. put num_dog= ;
  8.  
  9. run ;

Report this snippet 

You need to login to post a comment.