Yes, I am familiar with macro variables and programming. As I mentioned , I am defining a macro which with contain the proc univariate code to develop histograms. The input data sets will be different and the minimum and maximum values for the variable var1 will be different each time for different datasets. Although , I am able to get summary stats with proc univariate, I have to output the min and max values to another dataset as I will be using the noprint option. I am looking to have a generic code that pulls in the minimum and maximum values in the midpoints option. I cannot put actual numbers in the midpoints option as the datasets are going to be different all the time. I hope I explained everything clearly. Do you have any suggestions for me ? I would appreciate your help.
... View more