BookmarkSubscribeRSS Feed
Alex91
Fluorite | Level 6

Hello there.

 

I have a task to backup some datasets like .sas7bdat into some local directory.

Now its needed to backup datasets to another server (test environment) from prod server. How i can mount local path from test server?

Here is the macro variables with current path as /sas_work/backup/  :

 

%global OUTPUT_LIBNAME STATUS_TABLE OUTPUT_PATH;

%let OUTPUT_LIBNAME=output;
%let STATUS_TABLE=output.status_table;
%let OUTPUT_PATH=/sas_work/backup/;

 

 

4 REPLIES 4
Kurt_Bremser
Super User

Mounting a resource on a server (at least a UNIX server) requires superuser permissions, so have your server admin do it.

Or use a simpler tool (sftp) to copy the files. That only needs a user that can write to the target directory.

Alex91
Fluorite | Level 6

Thanks, KurtBremser!

Does that mean i backup my tables in current server and then using sftp access copy them to an another server, right?

Patrick
Opal | Level 21

You don't need a separate copy on the source side. SFTP Put/Get will copy files and leave the source unchanged. 

If you've got SAS/Connect installed then using proc download/upload would be another option.

But: In many organisations Prod is separated from Test and Dev so may be there are some barriers which you can't that easily overcome.

Kurt_Bremser
Super User

@Alex91 wrote:

Thanks, KurtBremser!

Does that mean i backup my tables in current server and then using sftp access copy them to an another server, right?


No, you just copy the .sas7bdat files to the other server, from the current location.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 730 views
  • 0 likes
  • 3 in conversation