BookmarkSubscribeRSS Feed
Filipvdr
Pyrite | Level 9
Hello,

I'm using the HTML Panel to output graphs in a table. It works fine but when i run an other report that outputs graphs, they get all attached and i get an HTML file of 300MB. Any help?
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
Just a thought (without seeing your code)...are you sure you are CLOSING the HTMLPANEL destination??? However you open the destination, you MUST close it. So, for example if you have:
[pre]
ods tagsets.htmlpanel file=...;
** then you MUST close the file (at the very end) with;

ods tagsets.htmlpanel close;
[/pre]

OR, if you are using the ODS MARKUP method of invocation, you will need:
[pre]
ods markup tagset=htmlpanel file=...;
*** more code;
ods markup close;
[/pre]

Of course the statement
[pre]
ods _all_ close;
[/pre]

will also close all of the open destinations in your program.

Do note that the name of the destination is NOT two words: "HTML PANEL", so you are probably NOT invoking the destination as:
[pre]
ODS HTML PANEL (which would be wrong and should generate messages in the log) like this:

1174 ods html panel file='c:\temp\somefile.html';
-----
22
202
ERROR 22-322: Syntax error, expecting one of the following: ;, (, ANCHOR, ARCHIVE,
ATTRIBUTES, BASE, BODY, CHARSET, CLOSE, CODE, CONTENTS, CSS, CSSSTYLE,
ENCODING, EXCLUDE, FILE, FRAME, GFOOTNOTE, GPATH, GTITLE, HEADTEXT,
IMAGE_DPI, LAYOUT, METATEXT, NEWFILE, NOGFOOTNOTE, NOGTITLE, OPTIONS,
PACKAGE, PAGE, PARAMETERS, PATH, RECORD_SEPARATOR, RENDER, SELECT, SHOW,
STYLE, STYLESHEET, TEXT, TRANTAB.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
[/pre]

Since the destination is NOT invoked with ODS HTML ... that means a simple
[pre]
ODS HTML CLOSE;
[/pre]
does NOT close an open TAGSETS.HTMLPANEL output file.

You might want to work with Tech Support on this question as they can look at all your code and see whether you are opening and closing the destination correctly.

cynthia
Filipvdr
Pyrite | Level 9
ods tagsets.htmlpanel close;

thanks, this solves it i think!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 732 views
  • 0 likes
  • 2 in conversation