The problem is that you are mixing macro-code and normal sas-code. In this case the intnx-function will never be executed. Some functions can be used in macro-statements via the %sysfunc-macro-function.
The following code uses a data-step to create the macro-variable firstDay.
[pre]
data _null_;
firstDay = put(intnx("DAY", "31Mar08"d, 1), mmddyy8.);
call symput("firstDay", firstDay);
run;
TITLE;
TITLE1 "Date = &firstDay";
proc print data=sashelp.class;
run;
[/pre]
Thinking before the first coffee is not always a good idea 😉 I removed the wrong idea about intnx and sysfunc.
Message was edited by: andreas_lds
... View more