Hi, Maybe someone can help me with my case, I have one obs date '20APR2020' in table week0 and i need to create one table with 7 obs, '20APR2020','21APR2020','22APR2020' etc. i try this but i doesn't work correctly %macro sqlloop(start,end); PROC SQL; %DO i=&start. %TO &end.; /* %let j=%eval(&i+1);*/ CREATE TABLE week%eval(&i+1) as SELECT intnx('day',day,&i.) as day format=date9. FROM week&i. ; /*union */ /*select * from ; */ %END; QUIT; %mend; %sqlloop(start=0, end=7) I need one table with values (for start I have only one date '20APR2020'): '20APR2020' '21APR2020' '22APR2020' '23APR2020' ..... Thanks in advance
... View more