BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
SAS_AMUH
Obsidian | Level 7

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.   

1 ACCEPTED SOLUTION

Accepted Solutions
ed_sas_member
Meteorite | Level 14

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,

View solution in original post

2 REPLIES 2
ed_sas_member
Meteorite | Level 14

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,

SAS_AMUH
Obsidian | Level 7

Thank you so much for your prompt answer.

sas-innovate-wordmark-2025-midnight.png

Register Today!

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.


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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 727 views
  • 1 like
  • 2 in conversation