<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Querying WRDS Data in SAS: Error Libname is not assigned. in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Querying-WRDS-Data-in-SAS-Error-Libname-is-not-assigned/m-p/541840#M7182</link>
    <description>&lt;P&gt;I have found the missing code for autoexec:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* The library name definitions below are used by SAS;&lt;BR /&gt;* Assign default libref for WRDS (Wharton Research Data Services);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;%include '/wrds/lib/utility/wrdslib.sas' ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;options sasautos=('/wrds/wrdsmacros/', SASAUTOS) MAUTOSOURCE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for help.&lt;/P&gt;</description>
    <pubDate>Sun, 10 Mar 2019 17:30:31 GMT</pubDate>
    <dc:creator>Yayoi_Kurikyu</dc:creator>
    <dc:date>2019-03-10T17:30:31Z</dc:date>
    <item>
      <title>Querying WRDS Data in SAS: Error Libname is not assigned.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Querying-WRDS-Data-in-SAS-Error-Libname-is-not-assigned/m-p/540643#M7163</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a beginner of SAS studio and I tried to get access to CRSP database which is supposed to be in 'Libraries'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wrds-www.wharton.upenn.edu/pages/support/programming-wrds/programming-sas/querying-wrds-data-sas/" target="_blank" rel="noopener"&gt;https://wrds-www.wharton.upenn.edu/pages/support/programming-wrds/programming-sas/querying-wrds-data-sas/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to this page, these datasets should&lt;SPAN&gt;&amp;nbsp;take&amp;nbsp;place automatically.&amp;nbsp;&lt;/SPAN&gt;However, I think because I wrongly reset SAS session, I cannot find any WRDS datasets now and have no idea how to make it back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now my local library looks like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="捕获.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27689i36A3BE51DE441E1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="捕获.PNG" alt="捕获.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And when I try to import data from dataset such as compustat, it shows:&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT size="2" color="#000000"&gt;data &lt;/FONT&gt;compustat&lt;FONT size="2" color="#000000"&gt;;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT size="2" color="#000000"&gt;set comp.funda;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;FONT size="2" color="#FF0000"&gt;ERROR: Libref COMP is not assigned.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT size="2" color="#000000"&gt;if indfmt='INDL' and datafmt='STD' and popsrc='D' and consol='C';&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT size="2" color="#000000"&gt;keep &lt;/FONT&gt;gvkeyn fyear fyr datadate&lt;FONT size="2" color="#000000"&gt; act lt &lt;/FONT&gt;pstkc conm&lt;FONT size="2" color="#000000"&gt; sich;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT size="2" color="#000000"&gt;run;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I am sorry to bother you with this basic question. And I am really thankful for all your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Yayoi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 03:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Querying-WRDS-Data-in-SAS-Error-Libname-is-not-assigned/m-p/540643#M7163</guid>
      <dc:creator>Yayoi_Kurikyu</dc:creator>
      <dc:date>2019-03-06T03:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Querying WRDS Data in SAS: Error Libname is not assigned.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Querying-WRDS-Data-in-SAS-Error-Libname-is-not-assigned/m-p/540644#M7164</link>
      <description>&lt;P&gt;Just re-run the LIBNAME statement you used before to create the libref COMP.&lt;/P&gt;
&lt;P&gt;It should probably look something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname comp 'some path on your SAS server';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Just figure out where you pointed the libref before and recreate it.&lt;/P&gt;
&lt;P&gt;If you really created a dataset named FUNDA then there should be a file named 'funda.sas7bdat' in the directory.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 04:10:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Querying-WRDS-Data-in-SAS-Error-Libname-is-not-assigned/m-p/540644#M7164</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-03-06T04:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Querying WRDS Data in SAS: Error Libname is not assigned.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Querying-WRDS-Data-in-SAS-Error-Libname-is-not-assigned/m-p/541226#M7174</link>
      <description>&lt;P&gt;Hello Tom.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying. However, the problem is that when I first time get access to SAS Studio, it has all access to the libraries on the WRDS and I do not have to type into the command such as&amp;nbsp;libname crsp ''/wrds/crsp/sasdata/m_ccm'';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I have another problem when I tried to create the CRSP library. When I try to run&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname crsp '/wrds/crsp/sasdata/m_ccm';&lt;/P&gt;&lt;P&gt;data permnolist;&lt;BR /&gt;set crsp.msf;&lt;BR /&gt;keep permno;&lt;BR /&gt;if year(date)&amp;gt;1969;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it says&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;ERROR: User does not have appropriate authorization level for file CRSP.MSF.DATA.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;But I am pretty sure my university has subscribed the CRSP and I&amp;nbsp;just used it a few days ago before I restore my libraries.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Yayoi&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 21:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Querying-WRDS-Data-in-SAS-Error-Libname-is-not-assigned/m-p/541226#M7174</guid>
      <dc:creator>Yayoi_Kurikyu</dc:creator>
      <dc:date>2019-03-07T21:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Querying WRDS Data in SAS: Error Libname is not assigned.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Querying-WRDS-Data-in-SAS-Error-Libname-is-not-assigned/m-p/541840#M7182</link>
      <description>&lt;P&gt;I have found the missing code for autoexec:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* The library name definitions below are used by SAS;&lt;BR /&gt;* Assign default libref for WRDS (Wharton Research Data Services);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;%include '/wrds/lib/utility/wrdslib.sas' ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;options sasautos=('/wrds/wrdsmacros/', SASAUTOS) MAUTOSOURCE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for help.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 17:30:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Querying-WRDS-Data-in-SAS-Error-Libname-is-not-assigned/m-p/541840#M7182</guid>
      <dc:creator>Yayoi_Kurikyu</dc:creator>
      <dc:date>2019-03-10T17:30:31Z</dc:date>
    </item>
  </channel>
</rss>

