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;
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.
Thank you! ODS HTML does the trick.
Don't forget to enable ODS graphics before your PROC UNIVARIATE.
ods graphics on;
Thank you! ODS GRAPHICS ON is helpful!
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
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.