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
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!
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.