BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

I'm just trying to get to grip with the ODS graphing options for use with say a GLM proc - but I am following the instructions on the net - but its still not plotting any graphs. My code is pasted below - any ideas where I'm going wrong?

Thanks

Dave

ods html style=statistical;
ODS HTML body = 'C:\Users\Dave\Documents\EvolutionWorkCopy\Reports\testStatgraph.xls';
ods graphics on;

proc glm data = Davetest.Amanda_data;
*where Species = 'Lat';
class sex population;
model svl = sex ;/*population sex*population*/
*means population sex sex*population /tukey;
*plot = meanplot(CLBAND);
run;
quit;
ods graphics off;
ods html close;
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
you might try using the explicit PATH and GPATH because otherwise, the image could get written to a different directory than the HTML file. The other possibility is to look in the SAS log to be sure that you have SAS/STAT and SAS/Graph licensed. Also, I'd recommend that you verify you can open the file in a browser first, before you try opening the file with Excel. ODS HTML creates an HTML file and while it is possible for Excel to open an HTML file, when you are debugging, I feel it is better to open files as originally coded, with the default viewer:
[pre]
ODS HTML path='C:\dir\subdir' (url=none)
Gpath= 'c:\dir\subdir' (url=none)
body = 'testStatgraph.html' style=statistical;
ods graphics on;
.... your GLM code;
ods graphics off;
ODS HTML CLOSE;
[/pre]

Also, some procedures have explicit options to turn on plots and graphics. You might try to run the GLM example for ODS Graphics (which usually has data with the sample program) and see whether that works.

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1 reply
  • 553 views
  • 0 likes
  • 2 in conversation