Hello, I bumped into this post % Let macro variable be max date in dataset. I followed the solution but when I created and called the macro, I'm getting this error message: 35 21AUG2023
_______
22
76
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, -, /, <, <=, <>, =, >, >=, AND, EQ, EQT, GE, GET,
GROUP, GT, GTT, HAVING, LE, LET, LT, LTT, NE, NET, OR, ORDER, ^=, |, ||, ~=.
ERROR 76-322: Syntax error, statement will be ignored. This is my code : proc sql;
select max(a.payout_dt) format=date9.
into :max_dt
from my.table a;
quit;
proc sql;
create table report as
select *
from my.database a
where a.snap_dt<=&max_dt;
quit; Appreciate any feedback that can help me troubleshoot this. Thanks!
... View more