BookmarkSubscribeRSS Feed
pcavicch
Calcite | Level 5

Hello,

I need to work with two different libraries in the same code. For example:

LIBNAME mylocallib 'c:\locallib';      * My windows PC;

LIBNAME myremotelib '/var/remotelib';      * A Unix remote server;

Those libraries are referring to physical paths on two different servers: local and remote.

My code seems not working:

if I select "Local" server to run it  (right click, "Select server") I'm getting an error every time I try to reference some dataset in myremotelib;

if I select a remote server to run it I'm getting an error every time I try to reference some dataset in mylocallib.

Is it possible to work with different libraries on different servers in the same piece of code?

Thank you in advance.

Paolo

2 REPLIES 2
mojerry2
Fluorite | Level 6

You have two possibilities.

first you can use the rsubmit and link this to your libname on the sas session.

other solution is to work with a share and create your libname fith the share name.

have a nice day.

pcavicch
Calcite | Level 5

Thank you very much Jerry,

It seems to work in SAS BASE, but it doesn't work in Enterprise Guide: the same connection script (.scr) used in SS BASE doesn't work in EG.

The Log isn't able to help me.

Do I have to change something in any script?

Thank you again.

Paolo

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 2 replies
  • 853 views
  • 3 likes
  • 2 in conversation