%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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.