BookmarkSubscribeRSS Feed
shutaro
Calcite | Level 5

Hi. I'm trying to output this proc boxplot to a file destination as shown below. I'm able to produce the file I want in mychart.html as shown below, but this code also saves additional .png files (one for each crosstab) to the same filepath which I don't want. Is there a way suppress these .png files from being created while producing the html file I need? Below is the code. Thank you!

 

filename odsout "G:\XXXX";
ods _all_ close;
ods html path=odsout file="mychart.html";

PROC BOXPLOT DATA=afile;
PLOT (preqearn1 preqearn2)*R_Site / boxstyle = schematic;
INSET MIN MEAN MAX STDDEV/ header="Overall Statistics" POS=TM;
INSETGROUP MIN MAX / header = "Extremes by category";
RUN;
ods html close;

1 REPLY 1
ballardw
Super User

@shutaro wrote:

Hi. I'm trying to output this proc boxplot to a file destination as shown below. I'm able to produce the file I want in mychart.html as shown below, but this code also saves additional .png files (one for each crosstab) to the same filepath which I don't want. Is there a way suppress these .png files from being created while producing the html file I need? Below is the code. Thank you!

 

filename odsout "G:\XXXX";
ods _all_ close;
ods html path=odsout file="mychart.html";

PROC BOXPLOT DATA=afile;
PLOT (preqearn1 preqearn2)*R_Site / boxstyle = schematic;
INSET MIN MEAN MAX STDDEV/ header="Overall Statistics" POS=TM;
INSETGROUP MIN MAX / header = "Extremes by category";
RUN;
ods html close;


If the "crosstabs" you mention are the INSET values then no, at least not with HTML. The images are use in tags created by the HTML to place the images in the rendered page.

Test this by using operating system tools to delete the images while the html file is closed. Then open the HTML file. Bet you now see little boxes with an X inside indicating missing images.

 

If the crosstabs are not the insets then they were generated by other code using the same output path and the path should be reset or changed before running other code.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

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