Desktop productivity for business analysts and programmers

Different Libraries on different servers?

Reply
Occasional Contributor
Posts: 6

Different Libraries on different servers?

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

Contributor
Posts: 28

Different Libraries on different servers?

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.

Occasional Contributor
Posts: 6

Different Libraries on different servers?

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

Ask a Question
Discussion stats
  • 2 replies
  • 160 views
  • 3 likes
  • 2 in conversation