Thank you for your information. However, I am getting like 1,2 and 3. Actually I need to show 12,36 and 60 bins number . My code is here below. Can you please help me to obtain 12,36 and 60 instead of 1, 2 and 3 in y axis %macro plot_histograms(table_name, column_name, number_of_bins, main="Main", xlabel="X Label"); %do j = 1 %to 3; proc sgplot data=&table_name; histogram &column_name / nbins=%scan(&number_of_bins,&j) ; * histogram &column_name / nbins=%scan(&number_of_bins,2) ; * histogram &column_name / nbins=%scan(&number_of_bins,3) ; title &main; label &column_name=&xlabel; yaxis label="Frequency, bins= "; run; %end; %mend; option mprint; %plot_histograms(hidalgo, y, 12 36 60 , main="1872 Hidalgo issue", xlabel="Thickness (mm)");
... View more