Proc Delete is faster than either PROC DATASETS or PROC SQL. Here are a few examples of how SAS programmers delete SAS tables.
proc delete data = libref.dataname; run; proc sql; drop table libref.dataname; quit; proc datasets library = libref; delete dataname; run; data _null_; length dd $8; rc = filename(dd,cats(pathname('libref'),'\dataname.sas7bdat')); rc = fdelete(dd); put _all_; run;
Since SAS 9.4, PROC DELETE has had more capabilities than ever -- find out more in Chris Hemedinger's blog.
This was originally posted by Ronald Fehd on sasCommunity.org.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning and boost your career prospects.