I have datasets with their names indexed on date, say ABC_20210424, ABC_20210425, ABC_20210426 and so on.
I will be running this code daily where, on each day, I want to extract datasets for 60 days till yesterday.
So, if today is APR 27,2021, my start date will be 26FEB2021 and end date will be 26APR2021.
I have initialised two macro variables for these dates:
data _null_; call symputx('SD', put(intnx('day', today(), -60, 's'), yymmddn8.)); call symputx('ED' , put(intnx('day', today(), -1, 's'), yymmddn8.)); run;
Now how do I extract all the ABC tables from 26FEB to 26APR into one table, using a macro?
Can a %DO statement help here?
Thanks in Advance!
... View more