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.