Issue:
I had an issue with batch server. The code runs fine in SAS EG and SAS DI Studio but fails when I run with batchserver. Error seems to beERROR: Insufficient authorization to access /opt/sasinside/Lev1/SASApp/Sas_Program.lst.
NOTE: The SAS System stopped processing this step because of errors.
Solution:
When you execute on batch mode sas tries to save the output file (Sas_Program.lst) under /opt/sasinside/Lev1/SASApp where is no permission to write. We should add two system options to sasv9_usermods.cfg file to redirect this outputs to another directory. The options are following:
-altprint <directory>
-print <directory>
Where directory is a directory where you have access to write. You must provide this directory. The directory can be some shared location like: /share/sas/lst.
If you decide to add this options these are the steps to follow:
1. Create or choose a driectory where your userid have write access. The userid is the one which you use to run the code.
2. There will be a outage since you have to restart Object Spawner. Approximate time of outage window will be 20 minutes.
3. Add options to sasv9_usermods.cfg
4. Restart Object Spawner
For more reference about the SAS optionsplease visit:
http://support.sas.com/documentation/cdl/en/hostunx/61879/HTML/default/viewer.htm#o-p3.htm
http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#win-sysop-altprint.htm
Sample entry in sasv9_usermods.cfg
-altprint
/data/share/LST
-print
/data/share/LST
Comments
Post a Comment