BookmarkSubscribeRSS Feed
snoogysimon
Calcite | Level 5
It seems that when I run an ODS HTML command, Enterprise Guide 4 will not return the results as HTML even though I have click that option in the Tools window.
Could it have something to do with the autoexec.sas?
5 REPLIES 5
Cynthia_sas
Diamond | Level 26
Hi:
To debug what is happening, you could open a code node in EG, paste this code into the code node and submit the following code (either on your local machine or on the server -- whichever one you were using when you discovered the problem):
[pre]
ods _all_ close;
ods html file='testit.html' style=sasweb;
proc print data=sashelp.class;
title 'My Report';
run;
ods html close;
[/pre]

The first statement closes any open ODS destinations and the next ODS HTML "sandwich" explicitly creates an HTML file. This program should create an HTML file inside your EG project.

If it does not work, then the log for this code may be instructive as to why you're getting errors. If for example, you get an error message about ODS HTML or the SASWEB style not being found, this might indicate some kind of error in the ODS PATH statement that points to the various template stores.

Your best bet for a quick resolution, really, is to contact Tech Support:
http://support.sas.com/techsup/contact/index.html

Good Luck!
cynthia
snoogysimon
Calcite | Level 5
Well when I try to run some code and product an HTML result I get as warning in the log below. Is it because the STYLESHEET URL does not exist?


1 ;*';*";*/;quit;run;
2 OPTIONS PAGENO=MIN;
3 %LET _CLIENTTASKLABEL=%NRBQUOTE(Code);
4 %LET _EGTASKLABEL=%NRBQUOTE(Code);
5 %LET _CLIENTPROJECTNAME=%NRBQUOTE();
6 %LET _SASPROGRAMFILE=;
7
8 ODS _ALL_ CLOSE;
9 OPTIONS DEV=JPEG;
10 ODS LISTING;
11 FILENAME EGHTML TEMP;
WARNING: Style AMODEFAULT not found; Default style will be used instead.
NOTE: Writing HTML(EGHTML) Body file: EGHTML
12 ODS HTML(ID=EGHTML) FILE=EGHTML ENCODING='utf-8' STYLE=AMODefault STYLESHEET=(URL="file:///E:/Program%20Files/SAS/Shared%20Files/BIClientStyles/AMODefault.css")
12 ! GPATH=&sasworklocation;
13
14 %gaccessible;
15
16
17 proc print data=sashelp.class;
18 run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The PROCEDURE PRINT printed page 1.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.03 seconds
cpu time 0.00 seconds


19
20
21
22 %LET _CLIENTTASKLABEL=;
23 %LET _EGTASKLABEL=;
24 %LET _CLIENTPROJECTNAME=;
25 %LET _SASPROGRAMFILE=;
26
27 ;*';*";*/;quit;run;
28 ODS _ALL_ CLOSE;
29
30
31 QUIT; RUN;
32
snoogysimon
Calcite | Level 5
Sorry forgot to ask:

How do I config EG4 to pick up stylesheets from another location automatically
when I run some code?
Cynthia_sas
Diamond | Level 26
Hi!
This is not actually an ERROR, it is a WARNING and it tells you what is going to happen:
[pre]
WARNING: Style AMODEFAULT not found; Default style will be used instead.
[/pre]

What it's saying is that the Default style will be used instead of AMODEFAULT style. It sounds like you are not running through JUST Enterprise Guide, but are using the SAS Add-in for Microsoft Office within the context of a Enterprise Intelligence Application configuration.

These kinds of questions are best answered by Tech Support because it sounds like you have 2 problems. A style warning should NOT prevent the results of a simple proc print task from showing in EG or in the SAS Add-in. So that's one problem. You need to get that resolved before the second question can be addressed -- how to point to a different style sheet location. And since this second question generally involves some work needed by the SAS Administrator to make files on the server available, your best bet for this answer is to read the Platform Administration guide or contact Tech Support for help.

Good luck,
cynthia

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
  • 5 replies
  • 2417 views
  • 0 likes
  • 3 in conversation