DATA Step, Macro, Functions and more

Error running a sas 9.3 batch program

Reply
New Contributor
Posts: 4

Error running a sas 9.3 batch program

I am trying to run a sas 9.3 batch program and there is the following error

 

insufficient authorization to access c:\Windows\system32

 

Thanks for the solution,

 

 

Super User
Posts: 7,846

Re: Error running a sas 9.3 batch program

When reporting problems, make it a point to always include the complete log of the failed step(s).

In the case of a failed batch run, make sure that all necessary files (source, log, output) are specified with a full path that you have permission to use.

How are you running your batch program? (cmd window, batch file, powershell, VB script, scheduler)

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
New Contributor
Posts: 4

Re: Error running a sas 9.3 batch program

Posted in reply to KurtBremser
This is the batch program

"c:\Program Files\SASHome\x86\SASFoundation\9.3\sas.exe" -sysin
"C:\Teste_Batch\prog1.sas"
-PRINT "C:\Teste_Batch\prog1.LST" -LOG "C:\Teste_Batch\prog1.LOG"

This is the message returned:


NOTE: Unable to open SASUSER.PROFILE. WORK.PROFILE will be opened instead.
NOTE: All profile changes will be lost at the end of the session.
ERROR: Insufficient authorization to access C:\Windows\system32\prog1.log.
Super User
Posts: 7,846

Re: Error running a sas 9.3 batch program

To quote myself:

"How are you running your batch program? (cmd window, batch file, powershell, VB script, scheduler)"

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
New Contributor
Posts: 4

Re: Error running a sas 9.3 batch program

Posted in reply to KurtBremser

Using Windows 7 with Task Scheduler

New Contributor
Posts: 4

Re: Error running a sas 9.3 batch program

Windows 7 Professional

Super User
Posts: 7,846

Re: Error running a sas 9.3 batch program

I give up.

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