Help using Base SAS procedures

Libname

Accepted Solution Solved
Reply
Super Contributor
Posts: 1,041
Accepted Solution

Libname


I have a dataset in the library called lib.apple

i want a duplicate copy of that dataset with name lib.apple_backup

How can i acheive that??

Thanks


Accepted Solutions
Solution
‎06-10-2013 02:34 PM
Super User
Posts: 11,343

Re: Libname

Posted in reply to robertrao

Lazy way

Data lib.apple_backup;

     set lib.apple;

run;

Proc datasets can copy as well.

View solution in original post


All Replies
Solution
‎06-10-2013 02:34 PM
Super User
Posts: 11,343

Re: Libname

Posted in reply to robertrao

Lazy way

Data lib.apple_backup;

     set lib.apple;

run;

Proc datasets can copy as well.

Regular Contributor
Posts: 227

Re: Libname

Proc Copy in  = Library
      out = BackUp
      memtype = data;
      *select DataA;
      *exclude DataB;

run;

🔒 This topic is solved and locked.

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

Discussion stats
  • 2 replies
  • 190 views
  • 0 likes
  • 3 in conversation