BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Super User

And if you need to summarize data before proc univariate to get a desired histogram you might as well look into the actual graphing procedures such as SGPLOT where you would have much more control. For instance you could specify the NBINS, number of bins to display, option for a HISTOGRAM in SGPLOT and worry about specific limits.

That might quite helpful if you have many similar variables that might shift the median but are supposed to have similar distributions.

Quartz | Level 8

@ballardw I do not want to summarize the data . I am happy with the histogram I got on  the sample dataset (bin size etc) and I want to move forward with proc univariate. My problem is I want a code that will determine the minimum and maximum  value of the var1 variable. proc sql  has the min and max function for pulling the minimum and maximum value of column data. Wish there was something like in in data steps.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 16 replies
  • 5 in conversation