BookmarkSubscribeRSS Feed
thanikondharish
Fluorite | Level 6

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

_______________________________________________________________________

1 REPLY 1
Ksharp
Super User

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 ;

Ksharp_0-1656939234581.png

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 984 views
  • 1 like
  • 2 in conversation