hi i am having 3 datasets which are suppurated by td_ i want to delete those datasets using code and these datasets stored in work library.
td_class;
td_cars;
td_heart;
these are my datasets.
data td_class;
set sashelp.class;
run;
data td_cars;
set sashelp.cars;
run;
data td_heart;
set sashelp.heart;
run;
thank you.
PROC DATASETS supports the colon operator like this
proc datasets lib=work nolist;
delete td:;
run;quit;
Do like this
proc datasets lib=work nolist;
delete td_class td_cars td_heart;
run;quit;
yes i agree with you but i need in condition code
i created every dataset as td_ so i want to delete every dataset which is starting with 'td_' or separated by '_' thank you
PROC DATASETS supports the colon operator like this
proc datasets lib=work nolist;
delete td:;
run;quit;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: