I have generated html files using following code. In the generated html body and frame files, there are no graphic outputs generated. When open these two files, there is message displayed at bottom “Internet explorer restricts this webpage form running scripts or ActiveX”. Does anyone have idea?
I am using SAS 9.4 TS Level 1M4 running on W32_7PRO platform with OS windows version 6. Thanks
title 'Comparing Group Means'; data Scores; input Gender $ Score @@; datalines; f 75 f 76 f 80 f 77 f 80 f 77 f 73 m 82 m 80 m 85 m 85 m 78 m 87 m 82 ; proc ttest; class Gender; var Score; run; ods html close; ods html body="&output\test.htm" contents="&output\testc.htm" frame="&output\testf.htm" style=HTMLBlue ; ods graphics on; ods graphics / reset imagemap=on width=4in height=6in ; proc ttest data=scores; class Gender; var Score; run; ods html close; ods listing;
Hi:
Explicitly using PATH= and GPATH= worked for me.
cynthia
ods html close;
%let output=c:\temp\output;
ods html path="&output" (url=none)
gpath="&output" (url=none)
body="test.htm" contents="testc.htm"
frame="testf.htm"
style=HTMLBlue ;
ods graphics on;
ods graphics / reset
imagemap=on
width=4in
height=6in ;
proc ttest data=scores;
class Gender;
var Score;
run;
ods html close;
ods listing;
Thank you. I've copied suggested codes and ran on my PC, but I got messages in log for some reason: "ERROR: Physical file does not exist, c:\temp\output\test.htm. ERROR: No body file. HTML output will not be created."
Actually, it works on my PC by using path option:
ods html path="&output" (url=none)
body="test.htm" contents="testc.htm" frame="testf.htm" …;
Hi Cynthia ,
Would you please suggest how can we print these .png images in mail body.
Thanks...
Ashok.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.