I have a macro that is not calculating correctly. I want to take a variable, date0, and create the macro, datecount out of it. date0 is formatted as a numeric mmddyy10. in the dataset report proc sql noprint; select date0 into :datecount from report; quit; when i %put &datecount I can tell that the macro is not working. I am unsure if it is due to the formatting (i also tried formatting date0 as date9. and that did not seem to work either) or if there's something else i'm doing incorrectly. Ultimately, I want to call the macro in a different macro: %let date2MO=%sysfunc(intnx(day, "&datecount"d, 91,e)); where I calculate whatever date is 91 days after datecount. any insight is helpful!
... View more