%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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.