One way is to apply an appropriate format to a date variable for the X axis variable, if a date YEAR4. or if the variable is a date time then DTYEAR4.
Then a VBAR statement in Proc SGPLOT with option STAT=Freq will show a count of records against the Yaxis.
... View more