Macro that able to find values with characters you would like the values to end with.

by Irina 9. June 2007 13:14
options mprint;

%macro varss(dsn,chr,var);
 data stam;
 set &dsn;
 if   reverse(substr(compress( reverse (&var)),1,length( &chr )))= &chr ;
 run;
%mend varss;

%varss(halvaot.new_var_ekcpr,'3m', effect );
%varss(halvaot.new_var_ekcpr,'6m', effect );

Related posts

Comments

10/8/2011 4:12:41 AM

Thank you for sharing, I really enjoyed your posts and pictures they were great! I think that all of us who follow this blog have that same feeling that you got from visiting.

beijing youth hostels

Add comment


(will show your Gravatar icon)  





Live preview

2/5/2012 9:28:14 PM

 

About the author

Irina Spivak Irina Spivak
Team Leader at G-Stat. More...


Send mail Email

Blogroll

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2012

    Sign in

    eXTReMe Tracker