ods rtf file='path/file.rtf' ;
proc report data=sashelp.class ;
columns name age sex ;
compute before _page_/style={just=cener} ;
line 'test1';
line 'test2';
line @1 'test3';
endcomp;
run;
ods rtf close ;
if i run the above code it will give center alignment but how to fix 'test3' value left alignment like
title1
title2
title3
_______________________________________________________________________
It is not easy. Here is an workaround way . I don't know if it is what you want.
ods rtf file='c:\temp\file.rtf' ;
proc report data=sashelp.class nowd style(lines)={just=l asis=on};
columns name age sex ;
compute before _page_ ;
line ' test1';
line ' test2';
line 'test3';
endcomp;
run;
ods rtf close ;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.