%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.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.