I created a few hundred temporary data sets with the use of a macro. All the data sets start with the same prefix, 'Legal_' in this case.
Once I have combined the data sets, I would like to drop the temporary tables created by the macro.
DATA COMBINE_LEGAL_FEES;
SET LEGAL_:;
RUN;
How do I drop all the temporary data sets without listing each individual data set? The 'prefix:' method used in the DATA step does not work in a PROC SQL step.
PROC SQL;
CREATE TABLE All_Transactions AS
SELECT
T1.*,
T2.LEGAL_FEES
From CCAREP.SAS_201401TO201602 T1
LEFT JOIN WORK.COMBINE_LEGAL_FEES T2 ON (T1.ACC_NUM = T2.ACC_NUM)
;
DROP TABLE LEGAL_: ;
QUIT;
There are just too many temporary tables to list them all.
Thanks Suavis