SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

Delete and keep certain data

Accepted Solution Solved
Reply
Regular Contributor
Posts: 228
Accepted Solution

Delete and keep certain data

Hi everyone.

 

Can I please ask how can I delete and keep only certain data from a libref? 

Let say there are 26 data i.e work.a, work.b,work.c,....,work.z and I only wanna keep work.f and/or work.h and delete the rest. 

 

Thank you very much.

 

 


Accepted Solutions
Solution
‎05-02-2016 11:26 PM
Super User
Posts: 19,799

Re: Delete and keep certain data

Look at proc datasets, it allows you to delete datasets. 

 

There's an example in the documentation that exactly illustrates your issue.

 

http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473454.htm

View solution in original post


All Replies
Solution
‎05-02-2016 11:26 PM
Super User
Posts: 19,799

Re: Delete and keep certain data

Look at proc datasets, it allows you to delete datasets. 

 

There's an example in the documentation that exactly illustrates your issue.

 

http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473454.htm

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 222 views
  • 0 likes
  • 2 in conversation