BookmarkSubscribeRSS Feed
mcdonnellmk
Calcite | Level 5

Hello,

 

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?

 

Code:

 

ods html body='lob_report.html' style=HTMLBlue;

proc print data=lob_scheds_output;

run;

ods html close;

 

Error:

ERROR: Insufficient authorization to access /sas/9.4/config/Lev1/CMRApp/lob_report.html.
ERROR: No body file. HTML output will not be created.

 

Thanks,

Mary Kate 

1 REPLY 1
TomKari
Onyx | Level 15

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;

 

Tom

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1227 views
  • 0 likes
  • 2 in conversation