02-24-2016 02:33 PM
I am new to learning SAS and am trying to get my data to output to an html. I'm using SAS EG 6.1. The code I am using is below, but I keep getting the same error. It seems like it is not going to the right files. Anyone seen this before or know how to fix it?
ods html body='lob_report.html' style=HTMLBlue;
proc print data=lob_scheds_output;
ods html close;
ERROR: Insufficient authorization to access /sas/9.4/config/Lev1/CMRApp/lob_report.html.
ERROR: No body file. HTML output will not be created.
02-24-2016 06:45 PM
Yes, it's a common problem in Enterprise Guide. You can't see it, but behind the scenes your SAS code is running on a Unix server (that's why the error message has forward slashes). Since it's a shared server, you don't have access to the default disk directory that SAS uses.
I would suggest you talk to your SAS adminstrator; they should be able to explain what directories you should be using, so that you'll have permissions on them, and even more important, so that you'll be able to access the HTML files from your PC afterward. This will make your "ods" statement look something like:
ods html body='/home/mcdonnellmk/lob_report.html' style=HTMLBlue;