<?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: authorization level for library WORK. Dropped in middle of loop in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/332097#M272016</link>
    <description>&lt;P&gt;Thanks for the input. Only antivirus software running is windows' own. (Since they are virtual machines.) Gotto keep digging.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2017 09:08:21 GMT</pubDate>
    <dc:creator>Pinegulf</dc:creator>
    <dc:date>2017-02-13T09:08:21Z</dc:date>
    <item>
      <title>authorization level for library WORK. Dropped in middle of loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/332075#M272014</link>
      <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have persisting, and annoying, little problem; My code loops loops number of countries through a macro loop;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro do_stuff(country);&lt;/P&gt;&lt;P&gt;... /*Some computations */&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%do_stuff(UK);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%do_stuff(FR);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%do_stuff(AT);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/*And so forth*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now every now and then. (Maybe once a month) In &lt;STRONG&gt;middle &lt;/STRONG&gt;of the loop I get error&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quote;&lt;/P&gt;&lt;P&gt;ERROR: User does not have appropriate authorization level for library WORK.&lt;/P&gt;&lt;P&gt;/quote&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now this is very puzzling since prior loop had all the access and suddenly it got revoked. As far as I can see, it does happen in particular country or datafile.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running on windows platform and sas version is 9.4. No, the whole code is not for review, but any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 06:30:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/332075#M272014</guid>
      <dc:creator>Pinegulf</dc:creator>
      <dc:date>2017-02-13T06:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: authorization level for library WORK. Dropped in middle of loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/332095#M272015</link>
      <description>&lt;P&gt;This: &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Error-User-does-not-have-appropriate-authorization-level-for/td-p/132870" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Error-User-does-not-have-appropriate-authorization-level-for/td-p/132870&lt;/A&gt; could be helpful, especially the reference to &lt;A href="http://support.sas.com/kb/40/459.html" target="_blank"&gt;http://support.sas.com/kb/40/459.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 08:51:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/332095#M272015</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-13T08:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: authorization level for library WORK. Dropped in middle of loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/332097#M272016</link>
      <description>&lt;P&gt;Thanks for the input. Only antivirus software running is windows' own. (Since they are virtual machines.) Gotto keep digging.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 09:08:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/332097#M272016</guid>
      <dc:creator>Pinegulf</dc:creator>
      <dc:date>2017-02-13T09:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: authorization level for library WORK. Dropped in middle of loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/332100#M272017</link>
      <description>&lt;P&gt;Note 40459 is specifically naming MS Security Essentials and MS Forefront, so you should look if one of those is active on your VMs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yet another thing I never have to worry about (our SAS server runs on AIX).&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 09:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/332100#M272017</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-13T09:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: authorization level for library WORK. Dropped in middle of loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/942914#M369670</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Workaround suggestion below.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Coming 7 years after the original question, but my Googling got me here, so maybe others are still experiencing the same issue.&amp;nbsp; Also finding this with running nested loops.&amp;nbsp; Using SAS Studio, which is running off a Windows machine (I believe Windows Server 2022).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Microsoft Security Essentials, mentioned in the Usage Notes (&lt;SPAN&gt;38896&amp;nbsp;&amp;amp;&amp;nbsp;40459&lt;/SPAN&gt;) has been deprecated, but likely other antivirus/security software is still the culprit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure how far I'll get with corporate IT on getting them to turn off antivirus anywhere.&lt;/P&gt;
&lt;P&gt;As a workaround, I created a folder and set a different libname (WORK2), and then I explicitly send all the outputs in my loop to WORK2.&amp;nbsp; At the end, I'll manually delete everything in that folder.&amp;nbsp; But since it's not stored in the same area of the disk, it looks to not get locked as quickly, and my loop ran.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 15:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/942914#M369670</guid>
      <dc:creator>avi_chaitovsky</dc:creator>
      <dc:date>2024-09-06T15:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: authorization level for library WORK. Dropped in middle of loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/942929#M369675</link>
      <description>&lt;P&gt;You might want to look into using the USER settings in SAS.&amp;nbsp; The basic idea is that if you have defined a libref named USER then single level dataset names will be referenced as USER.dsname instead of the default of WORK.dsname.&amp;nbsp; &amp;nbsp;That way you do not need change any of your code.&amp;nbsp; (Unless you have accidentally coded WORK.dsname instead of just dsname.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take an example program like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class; 
  set sashelp.class;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Which normally works like this:&lt;/P&gt;
&lt;PRE&gt;1    data class;
2      set sashelp.class;
3    run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.CLASS has 19 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
&lt;/PRE&gt;
&lt;P&gt;But if you have USER libref defined then instead the result is:&lt;/P&gt;
&lt;PRE&gt;4
5    libname user 'c:\downloads';
NOTE: Libref USER was successfully assigned as follows:
      Engine:        V9
      Physical Name: c:\downloads
6    data class;
7      set sashelp.class;
8    run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set USER.CLASS has 19 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is now a USER system option that lets you substitute some other libref instead of requiring you to define the USER libref.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 17:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/942929#M369675</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-09-06T17:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: authorization level for library WORK. Dropped in middle of loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/942930#M369676</link>
      <description>&lt;P&gt;Another possibility instead of some process like virus scanners locking the WORK directory is that you have a flaw in the logic that generates the WORK directory name such that a new SAS process occasionally starts up that is run by a different user with different access rights and replaces your WORK directory.&amp;nbsp; &amp;nbsp;I believe the WORK folder name is constructed from the process id.&amp;nbsp; So perhaps the same process id was assigned to a new SAS session, which might happen if you are sharing the same work disk with multiple servers.&amp;nbsp; On Unix in that situation SAS will include the server name as part of the name of the work folder to avoid conflicts.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 17:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/942930#M369676</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-09-06T17:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: authorization level for library WORK. Dropped in middle of loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/943137#M369741</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;!&amp;nbsp; I was not aware of the USER option, and this is probably a better solution than what I implemented.&lt;/P&gt;
&lt;P&gt;re: your second point about the WORK directory being replaced, it doesn't look like the files disappear when this happens, so I don't think that's the culprit.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 13:34:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/authorization-level-for-library-WORK-Dropped-in-middle-of-loop/m-p/943137#M369741</guid>
      <dc:creator>avi_chaitovsky</dc:creator>
      <dc:date>2024-09-09T13:34:38Z</dc:date>
    </item>
  </channel>
</rss>

