<?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: Issues with setting library (ERROR: User does not have appropriate authorization level for libra in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Issues-with-setting-library-ERROR-User-does-not-have-appropriate/m-p/639976#M35871</link>
    <description>&lt;P&gt;Have you previous sessions stopped unexpectedly?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If positive it could leave a lot of garbage in your work library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need clear it, try by next code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=work;  delete _ALL_; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;alternatively use OS commands.&lt;/P&gt;
&lt;P&gt;Afterwords enter a new sas session and run your programs.&lt;/P&gt;
&lt;P&gt;If you still have disk space issue you&amp;nbsp; can use same code, deleting specific temporary files&lt;/P&gt;
&lt;P&gt;not used any more, like in:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data temp1;
 set have;
  ...
run;
data temp2;  /* or any proc creating temp2 */
 set temp1;
   ...
run;
/* no need temp1 any more - delete it */
proc datasets lib=work; delete temp1; run;

etc.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 15 Apr 2020 06:01:14 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2020-04-15T06:01:14Z</dc:date>
    <item>
      <title>Issues with setting library (ERROR: User does not have appropriate authorization level for library)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Issues-with-setting-library-ERROR-User-does-not-have-appropriate/m-p/639639#M35862</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have been using SAS extensively over the last 2-3 months for research&lt;/P&gt;&lt;P&gt;I am trying to load these files - they give you the source code&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.hcup-us.ahrq.gov/db/nation/sasloadprog.jsp?year=2014&amp;amp;db=NIS" target="_blank" rel="noopener"&gt;https://www.hcup-us.ahrq.gov/db/nation/sasloadprog.jsp?year=2014&amp;amp;db=NIS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's take one example:&amp;nbsp;&lt;A href="https://www.hcup-us.ahrq.gov/db/nation/nis/tools/pgms/SASLoad_NIS_2014_Severity.SAS" target="_blank" rel="noopener"&gt;https://www.hcup-us.ahrq.gov/db/nation/nis/tools/pgms/SASLoad_NIS_2014_Severity.SAS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have had no problems with copy-pasting the provided code and sticking at the very top&lt;/P&gt;&lt;P&gt;LIBNAME NIS '/folders/myfolders/NIS';&lt;/P&gt;&lt;P&gt;Then replacing the&amp;nbsp;*** Data Step to load the file *** line with&amp;nbsp;&lt;BR /&gt;DATA nis.NIS_2014_Severity;&lt;BR /&gt;INFILE '/folders/myfolders/NIS/NIS_2014_Severity.ASC' LRECL = 81;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I loaded all of the Core files this way (the libname statement then modifying the Infile location), as well as about half of the severity files but all of a sudden my code gives me an error saying&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasError"&gt;ERROR: User does not have appropriate authorization level for library NIS.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;I had authorization literally 10 minutes ago. I tried rerunning old code that worked and it doesn't work anymore iether due to this error. Resetting the session didn't help, neither did trying out different folder paths and different library names. I also tried disabling Sophos as suggested before on these forums and that didn't work either.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;Any tips as to what I can do? I'm not sure why something that had been working suddenly doesn't work anymoer&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Apr 2020 05:34:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Issues-with-setting-library-ERROR-User-does-not-have-appropriate/m-p/639639#M35862</guid>
      <dc:creator>jinseokyang</dc:creator>
      <dc:date>2020-04-14T05:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with setting library (ERROR: User does not have appropriate authorization level for libra</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Issues-with-setting-library-ERROR-User-does-not-have-appropriate/m-p/639728#M35869</link>
      <description>&lt;P&gt;Your situation is not clear.&lt;/P&gt;
&lt;P&gt;I have looked at code written in:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://www.hcup-us.ahrq.gov/db/nation/nis/tools/pgms/SASLoad_NIS_2014_Severity.SAS" target="_blank"&gt;https://www.hcup-us.ahrq.gov/db/nation/nis/tools/pgms/SASLoad_NIS_2014_Severity.SAS&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;it conains 2 steps:&lt;/P&gt;
&lt;P&gt;1) proc format to run and create formats in work.library catalog.&lt;/P&gt;
&lt;P&gt;2) a data step to create a data-set using statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt;&amp;nbsp;INFILE 'NIS_2014_Severity.ASC' LRECL = 81;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you changed the&amp;nbsp;&lt;STRONG&gt;data&lt;/STRONG&gt; statement to have output to NIS library. That maybe OK.&lt;/P&gt;
&lt;P&gt;But where is the input file? it is not a SAS data-set!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you work at home and '/folders/myfolders/...' are on your personal PC or&lt;/P&gt;
&lt;P&gt;do you work on a class PC, then probably the NIS directory is already&amp;nbsp; assigned and&lt;/P&gt;
&lt;P&gt;prevented from writing in (and deleting from)&amp;nbsp; by the students.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do have your own directory/library that you are authorized to read-write-delete ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 12:50:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Issues-with-setting-library-ERROR-User-does-not-have-appropriate/m-p/639728#M35869</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-04-14T12:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with setting library (ERROR: User does not have appropriate authorization level for libra</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Issues-with-setting-library-ERROR-User-does-not-have-appropriate/m-p/639959#M35870</link>
      <description>&lt;P&gt;thank you for your advice! I actually settled the problem by changing around file locations into a file location that worked.&lt;/P&gt;&lt;P&gt;I'm on a PC so i can make my own directory/library.&lt;/P&gt;&lt;P&gt;I unfortunately have a new problem though&lt;/P&gt;&lt;P&gt;After successfully loading the files, I ran the code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data nis.core_hospital;&lt;BR /&gt;merge&lt;BR /&gt;nis.Nis_2007_core&lt;BR /&gt;nis.Nis_2007_hospital&lt;BR /&gt;;&lt;BR /&gt;by HOSPID;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;^This bit works totally fine but when I run the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data = nis.core_hospital out = nis.core_hospital;&lt;BR /&gt;by KEY;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="sasError"&gt;ERROR: No disk space is available for the write operation. Filename =&lt;/DIV&gt;&lt;DIV class="sasError"&gt;/tmp/SAS_util000100000BD5_localhost.localdomain/ut0BD500000F.utl.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Failure while attempting to write page 1416 of sorted run 6.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Failure while attempting to write page 40636 to utility file 1.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Failure encountered while creating initial set of sorted runs.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Failure encountered during external sort.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Sort execution failure.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;This is weird becuase the external hard drive on my PC has 1.5 TB of space left. I tried clearing the workspace, but that didn't work. Not sure how to access the temp files because looking for the directory tmp/anything usually doesn't work? What should I do in this situation? 2014-2008 worked fine &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Apr 2020 05:23:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Issues-with-setting-library-ERROR-User-does-not-have-appropriate/m-p/639959#M35870</guid>
      <dc:creator>jinseokyang</dc:creator>
      <dc:date>2020-04-15T05:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with setting library (ERROR: User does not have appropriate authorization level for libra</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Issues-with-setting-library-ERROR-User-does-not-have-appropriate/m-p/639976#M35871</link>
      <description>&lt;P&gt;Have you previous sessions stopped unexpectedly?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If positive it could leave a lot of garbage in your work library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need clear it, try by next code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=work;  delete _ALL_; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;alternatively use OS commands.&lt;/P&gt;
&lt;P&gt;Afterwords enter a new sas session and run your programs.&lt;/P&gt;
&lt;P&gt;If you still have disk space issue you&amp;nbsp; can use same code, deleting specific temporary files&lt;/P&gt;
&lt;P&gt;not used any more, like in:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data temp1;
 set have;
  ...
run;
data temp2;  /* or any proc creating temp2 */
 set temp1;
   ...
run;
/* no need temp1 any more - delete it */
proc datasets lib=work; delete temp1; run;

etc.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Apr 2020 06:01:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Issues-with-setting-library-ERROR-User-does-not-have-appropriate/m-p/639976#M35871</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-04-15T06:01:14Z</dc:date>
    </item>
  </channel>
</rss>

