Help using Base SAS procedures

copy all dataset from one lib to another

Reply
Regular Contributor
Posts: 204

copy all dataset from one lib to another

Hello everyone,

I want copy all data sets from work to another SAS folder. how to do it?

Thanks

proc datasets;

copy out=sasuser in=work;

select _all_;

run;

Super User
Posts: 17,818

Re: copy all dataset from one lib to another

Make sure you specify in/out libraries appropriately but if you drop the select all are copied by default. Also, make sure to include a quite statement with proc datasets.

proc datasets library=work;

copy out=sasuser in=work;

run;quit;

Super User
Posts: 10,497

Re: copy all dataset from one lib to another

And really not a good idea to put work product into SASUSER as upgrade/installations my not keep your datasets.

Super User
Posts: 9,676

Re: copy all dataset from one lib to another

libname x v9 'c:\temp';
proc copy in=work out=x memtype=data;
run;

Xia Keshan

Ask a Question
Discussion stats
  • 3 replies
  • 514 views
  • 0 likes
  • 4 in conversation