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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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