Hi community,
I´m new in this forum, so bare with me.
I´m testing PROC SGPLOT from SAS Studio, university edition. I want to produce an HTML file, with some graphics embedded. But in stead of showing the graphic in the HTML file, it only shows a small icon with an 'X'.
I tried this code:
ods html path="&path" body='test.html' (url=none);
ods graphics / reset imagefmt=jpeg ;
data one;
input trt_group time subject results;
datalines;
1 2 100 20
1 4 100 30
1 6 100 35
1 8 100 50
1 2 200 40
1 4 200 25
1 6 200 40
1 8 200 30
1 2 300 25
1 4 300 40
1 6 300 45
1 8 300 55
2 2 400 15
2 4 400 35
2 6 400 50
2 8 400 45
2 2 500 35
2 4 500 35
2 6 500 20
2 8 500 35
;
run;
proc sgplot data=one;
title 'Study Results by Treatment Group';
series x=time y=results / group=subject grouplc=trt_group name='grouping';
keylegend 'grouping' / type=linecolor;
run;
ods html close;
Any suggestions? Is it an 'university edition' issue?
Kind regards
See if moving the URL=NONE to immediately after the PATH="&path" helps.
See if moving the URL=NONE to immediately after the PATH="&path" helps.
Thanks a lot ballardw - it worked just fine 🙂
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.