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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.