Hi @ChrisWoo,
Basically, the PUT statement works only with variables and string constants. Results of a function must be stored in a variable first.
data _null_;
do i = 0 to 7;
text=put(intnx("month","01Jul2023"d,i,"end"),ddmmyy10.);
put "text = " text;
end;
run;
With named output the PUT statement can be simplified to
put text=;
This doesn't put blanks around the equals signs, though.
Another option is formatted output:
data _null_;
do i = 0 to 7;
d=intnx("month","01Jul2023"d,i,"end");
put "text = " d ddmmyy10.;
end;
run;
... View more