please help, my code: %let date=%sysfunc(today())-2; %let dd =%sysfunc(putn(&date.,ddmmyy2.)); %let mm =%sysfunc(putn(&date.,mmddyy2.)); %let mmm =%sysfunc(substr(%sysfunc(putn(&date.,monyy.)),1,3)); %let yy =%sysfunc(putn(&date.,yymmdd2.)); %let yyyy =20&yy.; %let edate =%sysfunc(intnx(month,&date.,0,e)); %let edd =%sysfunc(putn(&edate.,ddmmyy2.)); proc sql outobs=3; connect using x; create table CRMDAILY5 as select * from connection to X ( select * from CRM_DATA_DAILY /*where convert(varchar, Ticket_Date, 111) between '2023/03/01' and '2023/03/31'*/ where convert(varchar, Ticket_Date, 111) between '&yyyy./&mm./01' and '&yyyy./&mm./&edd ' ); quit; the result is 0 observation by if i write down: '2023/03/01' and '2023/03/31' then i get the observation question: how the wright code to call the %let value, on this: '&yyyy./&mm./01' and '&yyyy./&mm./&edd ' thanks before,
... View more