Data visualization with SAS programming

HTML Panel generates HTML but output of the next reports get attached

Reply
Regular Contributor
Posts: 228

HTML Panel generates HTML but output of the next reports get attached

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?
SAS Super FREQ
Posts: 8,718

Re: HTML Panel generates HTML but output of the next reports get attached

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
Regular Contributor
Posts: 228

Re: HTML Panel generates HTML but output of the next reports get attached

ods tagsets.htmlpanel close;

thanks, this solves it i think!
Ask a Question
Discussion stats
  • 2 replies
  • 153 views
  • 0 likes
  • 2 in conversation