Specify the titles. The #BYVAL specification inserts the year into the second line of the title.


   title  'Pie Sales for Each Bakery and Flavor';
   title2 '#byval(year)';
run;