Architecting, installing and maintaining your SAS environment

Insufficient authorization to access

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 135
Accepted Solution

Insufficient authorization to access

 

Hi,

 

I'm using SAS MC to schedule programs. But when I schedule them I'm getting the following error in log file:

 

ERROR: Insufficient authorization to access /opt/sas94/config/Lev1/SASApp/ABCD.lst

 

What is the problem?

 


Accepted Solutions
Solution
‎01-15-2018 07:19 AM
SAS Employee
Posts: 182

Re: Insufficient authorization to access

Hi Riana,

 

I don't know what your program does but to start, what is the behavior if you add an "ods listing close;" statement at the top of your code?

If that does not resolve the issue, we can try to change the default folder where output files are created.

 

Hope that helps.


Cheers,
Damo

View solution in original post


All Replies
Solution
‎01-15-2018 07:19 AM
SAS Employee
Posts: 182

Re: Insufficient authorization to access

Hi Riana,

 

I don't know what your program does but to start, what is the behavior if you add an "ods listing close;" statement at the top of your code?

If that does not resolve the issue, we can try to change the default folder where output files are created.

 

Hope that helps.


Cheers,
Damo

Frequent Contributor
Posts: 135

Re: Insufficient authorization to access

Thank you @Damo@jklaverstijn @alexal ,adding "ods listing close;" resolve the issue :-)

 

But I'm a little curious about the second solution: "... we can try to change the default folder where output files are created.

 

Can you please explain more about it?  

Super User
Posts: 8,590

Re: Insufficient authorization to access

An option I did for our workspace server was to add

cd $HOME

to the WorkspaceServer_usermods.sh file. You can do the same in the sasbatch_usermods.sh.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
SAS Employee
Posts: 182

Re: Insufficient authorization to access

Hi @Riana

 

Great news.

The PRINT System Option: Windows could be what you're looking for.

It will allow you to direct all your *.lst files to a dedicated folder.

 

Cheers,

Damo

SAS Employee
Posts: 413

Re: Insufficient authorization to access

@Riana,

 

The user doesn't have write access to /opt/sas94/config/Lev1/SASApp/. Please see the important comment from @Damo above.

Super Contributor
Posts: 493

Re: Insufficient authorization to access

Your info is very lomited but it does ring a bell. Please elaborate if my response misses the point.

 

Your program tries to create an output file in the default location (current working directory) of the SASApp server. Users are generally not allowed to create files in that location, nor is it recommended.

 

IF this program is run through the sas data step batch server than configure the log and print locations such that they end up in a more suitable place. This can either be somewhere under the user's home directory (I'm not enthousiastic about that idea) or a specific location dedicated to this purpose. Talk to your SAS administrator about this configuration aspect.

 

The output location can be configured via SASMC. It's in the properties of DATA Step Batch server.

 

Hope this helps,

-- Jan.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 6 replies
  • 207 views
  • 0 likes
  • 5 in conversation