BookmarkSubscribeRSS Feed
sg_kr
Obsidian | Level 7

HI,

 

i want to move  SAS datasets from server to local drive and  to do it all together,not one by one.

is there any way to do this, other than macro?

 

please help.

 

thanks,

goutham

6 REPLIES 6
PaigeMiller
Diamond | Level 26

You can use drag and drop (or cut and paste) in your operating system

 

There's also PROC COPY which will copy (not move) datasets to a new location.

 

--
Paige Miller
sg_kr
Obsidian | Level 7

when i use the proc datasets to copy the datasets from SAS server to local dirve.

im facing the below error.

it showing SAS server libname is re assigned.

 

 

 

193 rsubmit;
NOTE: Remote submit to METRO commencing.
537 Libname FLEX_INT '/data/u01/export/home/customer/BAT/TDB/FLEX_INT';
ERROR: Unable to clear or re-assign the library FLEX_INT because it is still in use.
ERROR: Error in the LIBNAME statement.
NOTE: Remote submit to METRO complete.

r_behata
Barite | Level 11

Are you trying to copy sas datasets from Linux (Server) to Windows (Local) ? Try WinScp or Sftp. If it is windows to Windows copy you can map the local drive to your server or do Sftp.

 

Linux to Windows transfer would need additional steps to make the file usable.

 

sg_kr
Obsidian | Level 7

im using WINSCP, but its consuming lot of time  .

 

any other way to move?

Patrick
Opal | Level 21

@sg_kr 

Looks like you've got SAS/Connect licensed. If so then use Proc Download as this will also ensure that the target SAS file will be in the encoding of your target SAS environment plus will also include things like indexes and constraints if you chose to do so.

https://go.documentation.sas.com/?docsetId=connref&docsetTarget=n01xxs4f7yb4cln188odwmewp98x.htm&doc...

Patrick
Opal | Level 21

Does that mean you also have a local SAS installed? If so do you also have SAS/Connect installed on the local and the remote SAS instance?

If you don't have a local SAS instance: Why would you want to move the SAS files?

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 1121 views
  • 0 likes
  • 4 in conversation