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

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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