<?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: Create of library failed in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-of-library-failed/m-p/703543#M215584</link>
    <description>&lt;P&gt;How did you end up resolving this? I am having the same exact issue.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Dec 2020 03:51:22 GMT</pubDate>
    <dc:creator>ckazarov</dc:creator>
    <dc:date>2020-12-04T03:51:22Z</dc:date>
    <item>
      <title>Create of library failed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-of-library-failed/m-p/681543#M206155</link>
      <description>&lt;P&gt;I am working through the 2nd practice question in the Programming Essentials class and continue to get errors when running the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The task is:&lt;/P&gt;&lt;DIV class="question"&gt;&lt;UL&gt;&lt;LI&gt;Write a PROC CONTENTS step to generate a report of the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;storm_summary.sas7bdat&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;table.&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;SAS Studio: Specify the path to your&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;EPG1V2/data&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;folder and the full name of the table&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I am working in SAS Studio, so my code is:&lt;/P&gt;&lt;P&gt;proc contents data="/home/u497000996/EPG1V2/data/storm_summary.sas7bdat";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I run the code I get the error:&lt;/P&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;SYMBOLGEN: Macro variable _SASWSTEMP_ resolves to /home/u49700996/.sasstudio/.images/9c2f11a4-e2fc-4d68-b371-f66d6148b2af&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;SYMBOLGEN: Some characters in the above value which were subject to macro quoting have been unquoted for printing.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;SYMBOLGEN: Macro variable GRAPHINIT resolves to GOPTIONS RESET=ALL GSFNAME=_GSFNAME;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 proc contents data="/home/u497000996/EPG1V2/data/storm_summary.sas7bdat";&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Create of library failed.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 run;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;I am able to pull up the data when I click on the file itself, so I know that it is there, but the code isn't working.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Any insight would be much appreciated!&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Sep 2020 02:46:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-of-library-failed/m-p/681543#M206155</guid>
      <dc:creator>larsonnic</dc:creator>
      <dc:date>2020-09-04T02:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create of library failed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-of-library-failed/m-p/681545#M206157</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/344999"&gt;@larsonnic&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't taken that class, and I'm using Enterprise Guide at the moment, not Studio, but I would normally create a Libname rather than trying to go straight to the sas7bdat file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Libname&amp;nbsp; PrgEssnt&amp;nbsp;&amp;nbsp;"/home/u497000996/EPG1V2/data";
proc contents data=PrgEssnt.storm_summary;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For the Libname, I just use the path.&amp;nbsp; For the Data= parameter of Proc Contents, I use a two part data set name consisting of Libname.Datasetname.&amp;nbsp;&amp;nbsp;Notice that nowhere do I actually code ".sas7bdat".&amp;nbsp; The extension is assumed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why don't you give that a shot and see how it goes?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 04:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-of-library-failed/m-p/681545#M206157</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-09-04T04:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create of library failed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-of-library-failed/m-p/681547#M206158</link>
      <description>&lt;P&gt;Lately i have seen many programs using direct path to datasets instead of library+dataset. Using the path in every place is such a bad idea, that i wonder why this is even part of official tutorials. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4539"&gt;@Sas&lt;/a&gt;: Please stop this madness, as it reduces readability and increase the efforts necessary to maintain the code.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 05:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-of-library-failed/m-p/681547#M206158</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-09-04T05:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create of library failed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-of-library-failed/m-p/703543#M215584</link>
      <description>&lt;P&gt;How did you end up resolving this? I am having the same exact issue.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 03:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-of-library-failed/m-p/703543#M215584</guid>
      <dc:creator>ckazarov</dc:creator>
      <dc:date>2020-12-04T03:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create of library failed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-of-library-failed/m-p/703564#M215599</link>
      <description>&lt;P&gt;Same solution: define a libname and use that.&lt;/P&gt;
&lt;P&gt;Right-click on the file in the navigation pane and copy/paste the path from the properties. Maintain the spelling, as UNIX is case sensitive.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 07:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-of-library-failed/m-p/703564#M215599</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-04T07:56:01Z</dc:date>
    </item>
  </channel>
</rss>

