BookmarkSubscribeRSS Feed
rfrancis
Obsidian | Level 7

Hello, I am seeking a simple histogram using Proc Univariate. The code below produces the stats in the output window but no graph anywhere (output window, disk, etc.). I've tried a few version of the ODS LISTING idea, but no luck. Grateful for any ideas. Thank you!  Rick

data binom;
	input var1;
	cards;
	1
	2
	2
	3
	3
	3
	4
	4
	4
	4
	5
	5
	5
	6
	6
	7
	;

ods listing html;
*ods listing gpath="c:\temp";

proc univariate data=binom;
	histogram var1 / normal;
var var1;


run;
4 REPLIES 4
PaigeMiller
Diamond | Level 26

Do you get an error in the log?

 

HTML (and histograms) cannot be written to the LISTING destination.

 

You want to use 

 

ods html;

with possibly other options in the ods html statement.

--
Paige Miller
rfrancis
Obsidian | Level 7

Thank you! ODS HTML does the trick. 

ChrisHemedinger
Community Manager

Don't forget to enable ODS graphics before your PROC UNIVARIATE.

 

ods graphics on;
Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!
rfrancis
Obsidian | Level 7

Thank you!  ODS GRAPHICS ON is helpful!

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
What is Bayesian Analysis?

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.

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
  • 4 replies
  • 1361 views
  • 6 likes
  • 3 in conversation