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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1034 views
  • 1 like
  • 2 in conversation