title "This is title 1" ;
data one;
do i=1 to 10;
output;
end;
run;
proc print; run;
title2 "This is title 2";
title3 "This is title 3";
data two;
do j=1 to 5;
output;
end;
run;
proc print; run;
proc sql noprint;
select TEXT into : MYTITLES separated by ", "
from SASHELP.VTITLE
where NUMBER in (1,2,3);
quit;