08-01-2014 02:19 PM
I want to run a set of code for several different years. I have put my code into a macro with parameter year. However, I must use year a both a numeric variable and a character variable within my program. Is there a was of getting around having to include year as two parameters - one numeric and one in single quotes?
This is a simplification of the problem. In reality I hoping to significantly reduce the number of paprameters in my macro.
%macro doyear(year, yearstr);
Any suggestions would be appreciated!
08-01-2014 02:57 PM
You can pass one parameter and use it for both numeric and character variables.