Dear community,
exactly two years later I have a similar date-Problem: how to determine the last workday (Friday) on or before the 25th? 🐵
Let's assume I have a variable d25cm (25th of current month). I tried with
[PRE]
data _null_;
WDB25=intnx('week.6',&d25cm,(weekday(&d25cm) in (2,3,4,5,6))-1);
if today() = WDB25 then do;
/* more code */
end;
run;
[/PRE]
but that doesn't work as expected. Any idea will be of great help!
With best regards,
Thomas