Desktop productivity for business analysts and programmers

ods html text in SAS EG 6.1

Senior User
Posts: 1

ods html text in SAS EG 6.1



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.



Mary Kate 

Trusted Advisor
Posts: 1,056

Re: ods html text in SAS EG 6.1

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;



Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation