<?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 Unable to access library file in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Unable-to-access-library-file/m-p/612261#M8493</link>
    <description>&lt;P&gt;New to Sas and trying to complete online training.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The e-learning shows the steps to create a library called PG1, PG1 successfully created:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;70&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;71 libname PG1 "/home/u12345678/EPG194/data";&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Libref PG1 was successfully assigned as follows:&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Engine: V9&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Physical Name: /home/u12345678/EPG194/data&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;STRONG&gt;Trying to access the files using proc print data= "PG1/np_summary" (np_summary is in PG1 folder), the error below returns:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;70&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;71 proc print data="pg1.np_summary" (obs=20);&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;FONT color="#FF0000"&gt;ERROR: Extension for physical file name "pg1.np_summary" does not correspond to a valid member type.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72 var reg type parkname dayvisits tentcampers rvcampers;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 run;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Thanks!&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 16 Dec 2019 23:17:24 GMT</pubDate>
    <dc:creator>ketone</dc:creator>
    <dc:date>2019-12-16T23:17:24Z</dc:date>
    <item>
      <title>Unable to access library file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Unable-to-access-library-file/m-p/612261#M8493</link>
      <description>&lt;P&gt;New to Sas and trying to complete online training.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The e-learning shows the steps to create a library called PG1, PG1 successfully created:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;70&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;71 libname PG1 "/home/u12345678/EPG194/data";&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Libref PG1 was successfully assigned as follows:&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Engine: V9&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Physical Name: /home/u12345678/EPG194/data&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;STRONG&gt;Trying to access the files using proc print data= "PG1/np_summary" (np_summary is in PG1 folder), the error below returns:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;70&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;71 proc print data="pg1.np_summary" (obs=20);&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;FONT color="#FF0000"&gt;ERROR: Extension for physical file name "pg1.np_summary" does not correspond to a valid member type.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72 var reg type parkname dayvisits tentcampers rvcampers;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 run;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Thanks!&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Dec 2019 23:17:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Unable-to-access-library-file/m-p/612261#M8493</guid>
      <dc:creator>ketone</dc:creator>
      <dc:date>2019-12-16T23:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access library file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Unable-to-access-library-file/m-p/612426#M8495</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;You should NOT have quotes after data= option. It should just be: &lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc print &lt;FONT color="#FF00FF"&gt;data=pg1.np_summary&lt;/FONT&gt; (obs=20);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;... more code...&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;When you use a 2 level SAS name, you do NOT need quotes. The LIBNAME statement already points to the operating system folder path for the data. So, SAS knows to look for the &lt;STRONG&gt;np_summary.sas7bdat&lt;/STRONG&gt; file in that location when you use the 2 level name. If you remember, back in the early part of class, we had you use the fully qualified path for the &lt;STRONG&gt;storm_summary&lt;/STRONG&gt; data, like this:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc contents &lt;FONT color="#FF00FF"&gt;data="/home/&amp;lt;yourUserID&amp;gt;/EPG194/data/storm_summary.sas7bdat"&lt;/FONT&gt; ;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With a LIBNAME statement defined,&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;libname pg1 '/home/&amp;lt;yourUserID&amp;gt;/EPG194/data';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can use the "nickname" or libref of &lt;STRONG&gt;PG1&lt;/STRONG&gt; to tell SAS where the SAS data is located in a folder on the operating system. SAS knows that SAS tables have a file extension of &lt;STRONG&gt;sas7bdat&lt;/STRONG&gt;, so you can simplify the DATA= option with an UNQUOTED 2 level name, as shown below:&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc contents &lt;FONT color="#FF00FF"&gt;data=pg1.storm_summary&lt;/FONT&gt; ;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OR&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc contents &lt;FONT color="#FF00FF"&gt;data=pg1.np_summary&lt;/FONT&gt; ;&lt;BR /&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OR&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc print&lt;FONT color="#FF00FF"&gt; data=pg1.np_summary&lt;/FONT&gt; ;&lt;BR /&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 15:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Unable-to-access-library-file/m-p/612426#M8495</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-12-17T15:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to access library file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Unable-to-access-library-file/m-p/612515#M8496</link>
      <description>It works! Thank you Cynthia.</description>
      <pubDate>Tue, 17 Dec 2019 19:27:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Unable-to-access-library-file/m-p/612515#M8496</guid>
      <dc:creator>ketone</dc:creator>
      <dc:date>2019-12-17T19:27:55Z</dc:date>
    </item>
  </channel>
</rss>

