hi ... the following makes a data set with 1000 dates then does a histogram
of the dates grouped by year-quarter
I made the assumption that when you said PLOT you meant CHART since
I'm not quite sure how a PLOT fits with grouping data on the X-AXIS
so, here's a suggestion
[pre]
* make some fake data;
data x;
do j=1 to 1000;
dt = ceil(750*ranuni(123)) + 15000;
output;
end;
format dt monyy.;
drop j;
run;
* look at the data ... table of MONTH-YEAR;
proc freq data=x;
table dt;
run;
* histogram ... dates grouped by quarter within year using YYQ. format;
proc gchart data=x;
vbar dt / discrete;
format dt yyq.;
run;
quit;
[/pre]