DATA Step, Macro, Functions and more

libname error when using WRDS address

Accepted Solution Solved
Reply
Contributor
Posts: 22
Accepted Solution

libname error when using WRDS address

Dear all,

 

I am sorry to ask you so many basic questions. I did google search and review of multiple guides for quite some time but I could not find the answer. 

 

Currently, I am trying to calculate CAR around event days. Using the following code, I logged into WRDS.

 

%let wrds = wrds.wharton.upenn.edu 4016;options comamid = TCP remote=WRDS;
signon username=_prompt_;
  
rsubmit;

Then, to access CRSP, I used the following code. 

libname crsp '/wrds/crspq/sasdata/ix';

When this code is excuted, I receive the following error message. 

 

212 libname crsp '/wrds/crspq/sasdata/ix';
NOTE: Library CRSP does not exist.

 

I am running SAS on windows. 

 

Thank you very much for your help. 


Accepted Solutions
Solution
‎10-24-2016 10:52 AM
Super User
Posts: 7,763

Re: libname error when using WRDS address

[ Edited ]
Posted in reply to Leon_Seungmin

Then I suggest you log on to the server and make sure that /wrds/crspq/sasdata/ix actually exists. The NOTE message is typical for a path that does not exist.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers

View solution in original post


All Replies
Super User
Posts: 7,763

Re: libname error when using WRDS address

Posted in reply to Leon_Seungmin

To use a dataset present on the remote server, you need to use the remote engine:

libname crsp remote '/wrds/crspq/sasdata/ix' server=wrds;
---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Contributor
Posts: 22

Re: libname error when using WRDS address

Posted in reply to KurtBremser
Thank you for the response. I just tried remote, but I still get the same error message. This is the log.

227 libname crsp remote '/wrds/crspq/sasdata/ix' server=wrds;
NOTE: Library CRSP does not exist
Solution
‎10-24-2016 10:52 AM
Super User
Posts: 7,763

Re: libname error when using WRDS address

[ Edited ]
Posted in reply to Leon_Seungmin

Then I suggest you log on to the server and make sure that /wrds/crspq/sasdata/ix actually exists. The NOTE message is typical for a path that does not exist.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Contributor
Posts: 22

Re: libname error when using WRDS address

Posted in reply to KurtBremser
Thank you very much! That was indeed the case. I checked the directory(https://wrds-web.wharton.upenn.edu/wrds/tools/variable.cfm?library_id=20) and found that they are using a different directory name now.
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 461 views
  • 1 like
  • 2 in conversation