authorization level for library WORK. Dropped in middle of loop

Reply
Occasional Contributor
Posts: 6

authorization level for library WORK. Dropped in middle of loop

Good day,

 

I have persisting, and annoying, little problem; My code loops loops number of countries through a macro loop;

 

%macro do_stuff(country);

... /*Some computations */

%mend;

 

%do_stuff(UK);

%do_stuff(FR);

%do_stuff(AT);

/*And so forth*/

 

Now every now and then. (Maybe once a month) In middle of the loop I get error 

Quote;

ERROR: User does not have appropriate authorization level for library WORK.

/quote

 

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. 

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. 

 

Many thanks.

Super User
Posts: 7,843

Re: authorization level for library WORK. Dropped in middle of loop

This: https://communities.sas.com/t5/Base-SAS-Programming/Error-User-does-not-have-appropriate-authorizati... could be helpful, especially the reference to http://support.sas.com/kb/40/459.html

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 6

Re: authorization level for library WORK. Dropped in middle of loop

Posted in reply to KurtBremser

Thanks for the input. Only antivirus software running is windows' own. (Since they are virtual machines.) Gotto keep digging.

Super User
Posts: 7,843

Re: authorization level for library WORK. Dropped in middle of loop

Note 40459 is specifically naming MS Security Essentials and MS Forefront, so you should look if one of those is active on your VMs.

 

Yet another thing I never have to worry about (our SAS server runs on AIX).

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 3 replies
  • 115 views
  • 0 likes
  • 2 in conversation