I am using a very simple programming code to draw a histogram.
The following code did work to produce a histogram on SAS output screen.
PROC UNIVARIATE DATA = data_new1;
histogram age/midpoints=(0 to 20 by 1); run;
But for some reasons, when I repeated the same code for a similar dataset, it produced a series of statistics (sample moments, basic measures of location and variability etc.) for all the variables in data_new1, when I only chose one variable 'age' in the above code.
How do I stop it from producing a series of statistics as I ONLY NEED A HISTOGRAM to be produced on SAS output screen?
Thank you for your help in advance.
Hi @SAS_AMUH
The 'noprint' option suppresses all the tables of descriptive statistics that the PROC UNIVARIATE statement creates.
PROC UNIVARIATE DATA=data_new1 noprint;
histogram age/midpoints=(0 to 20 by 1);
run;
Best,
Hi @SAS_AMUH
The 'noprint' option suppresses all the tables of descriptive statistics that the PROC UNIVARIATE statement creates.
PROC UNIVARIATE DATA=data_new1 noprint;
histogram age/midpoints=(0 to 20 by 1);
run;
Best,
Thank you so much for your prompt answer.
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 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.
Ready to level-up your skills? Choose your own adventure.