%global not working either 😞
the code works fine if i use tab2.CREATION_DATE >="01MAR2015"d but not if i use the macro var below and it resolves fine everywhere out of the query but not in the query below
%LET today = %sysfunc(today()); %LET month_27 = %sysfunc(intnx(month, &today, -27));
%put &month_27;
CREATE TABLE clkb_base AS SELECT x,y,z FROM tab1 JOIN tab2 ON tab1.ADDR_ENTITY_ID = tab2.CUSTOMER_ID JOIN tab3. ON tab1.ID = tab3.ENTITY_ID ........................ ......................... WHERE tab2.CREATION_DATE >="&month_27" QUIT;
... View more