#BYVAR and ODS LAYOUT are applied well for PDF file, using ODS PDF. However, how about RTF file? ODS LAYOUT is not applied to ODS RTF. I tried to use COLUMNS= in ODS RTF statement, but it doesn't display well, there are many spaces between the graphs, is there a better way? My codes are as below:
data Have;
set Sashelp.Stocks;
where '01Jan1998'd <= Date <= '30May2000'd;
/* prepare data to display information */
if Stock='IBM' then Trend='Neutral ';
else if Stock='Intel' then Trend='Increasing';
else if Stock='Microsoft' then Trend='Decreasing';
run;
proc sort data=Have;
by Stock Date;
run;

title;
footnote;
ods graphics / width=800px height=700px; /* make small to fit on page */
ods rtf file="...\test.rtf" columns=3; /* specify the number of graphs to display across the page*/
options nobyline; /* suppress Stock=Value title */
ods layout gridded columns=3 advance=table; /* layout in three columns */
title2 "The Time Series for #byval1 Is #byval2"; /* substitute stock name and trend value */

proc sgplot data=Have;
by Stock TREND notsorted;
series x=Date y=Open / lineattrs=(thickness=2);
yaxis grid label="Stock Price"; /* optional: min=50 max=210 */
xaxis display=(nolabel);
run;

ods layout end; /* end the gridded layout */
options byline; /* turn the option on again */
ods rtf close;