The NOBYLINE option suppresses the default BY line. The #BYVAL specification inserts the value of the BY variable Year into the title.
options nobyline; title 'Leading Grain-Producing Countries'; title2 'for #byval(year)';