BookmarkSubscribeRSS Feed
thanikondharish
Calcite | Level 5

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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 670 views
  • 1 like
  • 2 in conversation