Hello, I've got a macro that the user can define and it will always be in this format (YYYYMM) e.g. %let filedate = 201906; and I want another macro that will use this filedate and give me the last day of that month using something like this: %let MonthEnd = %sysfunc(intnx(month,input(cats(&filedate.,01),yymmdd8.),0,E),date9.); (<-- but this doesn't work) I can make this work in a data step but not in a macro and I don't know what I'm doing wrong. %let Filedate = 201906; data test; format y ddmmyy10.; y = intnx("month",input(cats(&Filedate.,"01"),yymmdd8.),0,"E"); run; Any ideas? Thank you
... View more