Desktop productivity for business analysts and programmers

Creating local SAS library

Reply
N/A
Posts: 0

Creating local SAS library

Hi ,
I am using SAS EG and running code on remote sas server.
I don't have sas localy installed.
when ever i use libname statement, it takes paths on from server.
If i want to create a local library (On my client m/c) how can i make it?
i have tried

libname testlib "\\Mypc\shared_folder";

but this did not worked.

Any suggestions ?

Thank you

Regards
Avi
Valued Guide
Posts: 2,111

Re: Creating local SAS library

Avi,

What kind of server? I think that, for you to use a local directory as a library, the SAS server has to be able to connect back to your PC as a network share.

If your SAS server is a Windows box, this may work for an XP EG client:
Go to "my computer"
Select the drive you want to share
Select file --> sharing and security
Share the drive with the network.

The share name would be \\$\

This functionality is often turned off by IT support groups, so you may need them to help you. There should be equivalent functionality for Windows host/Vista client. I'm not sure how to go about it with other SAS server hosts.

Doc Muhlbaier
Duke
N/A
Posts: 0

Re: Creating local SAS library

Hi doc,

I tried your suggestion.

I am able to access "\\WNTPC06\C$\AVI\LIB" through browser.

this is the log for my code.

10
11 %gaccessible;
12 libname templib "\\WNTPC06\C$\AVI\LIB";
NOTE: Library TEMPLIB does not exist.
13 data templib.abc;
14 set sashelp.flags;
15 run;

ERROR: An I/O error has occurred on file TEMPLIB.ABC.DATA.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds


16

is there some other way?
My server is SAS win 2003 sever and i have XP box.

Regards
Avi
Valued Guide
Posts: 2,111

Re: Creating local SAS library

Can you get to it from another PC via the browser? If so, then you'll likely need your IT group to help you connect to the server.
Community Manager
Posts: 2,693

Re: Creating local SAS library

On the remote server, are you connecting as you, using your Windows account? Or is it using a machine-level account (like sasdemo)? To access the resource from your remote SAS session, the process must be running as a user that has authority to get to that path.

Chris
N/A
Posts: 0

Re: Creating local SAS library

I don't know , whats the username sas server is running.

how can i make SAS EG to prompt for username and password for server before submiting code to sas server?


regards
Avi
Community Manager
Posts: 2,693

Re: Creating local SAS library

If you are using EG 4.1, you can look at the section on managing servers on page 37 of the admin guide.

http://support.sas.com/documentation/onlinedoc/guide/admin4.pdf

Chris
N/A
Posts: 0

Re: Creating local SAS library

Thanks chris & doc
Ask a Question
Discussion stats
  • 7 replies
  • 261 views
  • 0 likes
  • 3 in conversation