Hi
Please help me to understand the below step by step
data _null_;
dt=put(today()-1, mmddyy6.);
call symputx('dt1', 111719);
put _all_;
run;
dt=put(today()-1, mmddyy6.);
This creates a character variable named dt which has the value of yesterday's date, in format mmddyy6 which is 102121 (10th month, 21st day, 21st year of the century) or October 21, 2021.
Other than that, I am not sure what you don't understand, maybe you could explain further.
dt=put(today()-1, mmddyy6.);
This creates a character variable named dt which has the value of yesterday's date, in format mmddyy6 which is 102121 (10th month, 21st day, 21st year of the century) or October 21, 2021.
Other than that, I am not sure what you don't understand, maybe you could explain further.
please explain me these below to lines....thank you
call symputx('dt1', 111719);
put _all_;
call symputx('dt1', 111719);
creates a macro variable (not a data set variable) named &DT1 that has value 111719.
put _all_;
writes the names and values of all data set variables (including automatic temporary variables such as _N_ and _ERROR_) to the log
thank you
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.