DATA Step, Macro, Functions and more

Library between servers

Reply
Contributor
Posts: 22

Library between servers

Hi all. EBI noob here, but we're still having to bridge the old way of doing things with the new world. So, we've got EBI running on a UNIX box. I would like to access a folder (containing SAS dataset) on our Windows/Novell server using EG running on the Unix compute server. Seems like it would be simple enough to build a libname statement to the other server, adding some host and log-in arguments, but I just haven't been able to pin down the syntax. Is this possible?

Thanks.

rmw
Super Contributor
Posts: 474

Re: Library between servers

Hi

Here's my everyday script:
[pre]
/* signon to remote */
%let sasR = upc6001sas01 4600;
options comamid=tcp;
signon sasR user=_prompt_;
/* or if you do not wish to be prompted for user/password */
*signon sasR user=myuser password=mypassword;

/* assign remote lib */
rsubmit;
libname mylib 'physica-path' access=readonly;
endrsubmit;
libname mylibR server=sasR slibref=mylib;
[/pre]

Hope it helps.

Cheers from Portugal.

Daniel Santos @ www.cgd.pt
Super User
Posts: 5,260

Re: Library between servers

That was an example of the "old school", which requires SAS/CONNECT on both SAS client and server. The more "modern" way to connect from EG to an EBIS installation is connect to it's workspace server through the metadata server. Contact your EBIS system admin for details concerning portnumber, authentication, library assignment on the server etc.

/Linus
Data never sleeps
Super Contributor
Posts: 474

Re: Library between servers

Hi guess, I'm an old fashion guy :-)

Well, I don't work often with SAS/EG, so yes, this will work for EG, but it is mostly a technique for SAS/BASE.

Linus is right, but accessing a remote server through the metadata definition should be more transparent to you, and you shouldn't have the need to literally code it yourself.

Cheers from Portugal.

Daniel Santos @ www.cgd.pt
Ask a Question
Discussion stats
  • 3 replies
  • 130 views
  • 0 likes
  • 3 in conversation