%let File1Date=SEP2020;
%let File2Date=OCT2020;
%LET Nobs1=5;
%LET Nobs2=5;
Data _null_;
if input(&File1Date.,monyy7.) ne input(&File2Date.,monyy7.) then call symputx('Nobs1',0);
run;
%put &Nobs1. &Nobs2. ;
Without quotes, SEP2020 is a variable name for the data step compiler. You have to enclose the macro variables in double quotes to make them strings.
Without quotes, SEP2020 is a variable name for the data step compiler. You have to enclose the macro variables in double quotes to make them strings.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.