I want to use a SAS function such as
proc datasets nolist;
delete lib.temp_something lib.temp_something2 lib.temp_something3;
quit;
Is there a shortcut to delete all tables with the same prefix so I dont have to manually type them out?
I want to use a SAS function such as
proc datasets nolist;
delete lib.temp_something lib.temp_something2 lib.temp_something3;
quit;
Is there a shortcut to delete all tables with the same prefix so I dont have to manually type them out?
Similar to @Dwal
proc datasets lib=lib nolist nowarn;
delete temp_somthing:;
run;
I think the colon wildcard :
should do what you want.
proc datasets nolist;
delete lib.temp_something:;
quit;
You could use something like this below
proc delete lib=mylib data = temp_something-temp_something3;
run;
http://support.sas.com/resources/papers/proceedings13/022-2013.pdf