The SAS Output Delivery System and reporting techniques

Left and Right aling title on same line in RTF output

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 9
Accepted Solution

Left and Right aling title on same line in RTF output

Hi All,

I want two different title in same line. one is left align and one is right align for ODS RTF output.

Can any one help me to resolve this.

I have tried options(print_header) and also like

title j=left "Left align" j=right "Right align";


Accepted Solutions
Solution
‎07-16-2014 05:47 AM
Super User
Super User
Posts: 9,599

Re: Left and Right aling title on same line in RTF output

Posted in reply to SanjayAhir

So if you run the below code, the output does not not look like the attached output?

ods noresults;

ods rtf file="s:temp\rob\test.rtf" style=statistical;

title1 j=l "Left" j=r "Right";

proc report data=sashelp.cars nowd;

  column make;

run;

ods _all_ close;

View solution in original post

Attachment

All Replies
Super User
Super User
Posts: 9,599

Re: Left and Right aling title on same line in RTF output

Posted in reply to SanjayAhir

What you have should work -

title1 j=l "Left" j=r "Right";

Occasional Contributor
Posts: 9

Re: Left and Right aling title on same line in RTF output

Thank you for you answer.

I have tried this one but it is showing correct result in HTML not in RTF.

Solution
‎07-16-2014 05:47 AM
Super User
Super User
Posts: 9,599

Re: Left and Right aling title on same line in RTF output

Posted in reply to SanjayAhir

So if you run the below code, the output does not not look like the attached output?

ods noresults;

ods rtf file="s:temp\rob\test.rtf" style=statistical;

title1 j=l "Left" j=r "Right";

proc report data=sashelp.cars nowd;

  column make;

run;

ods _all_ close;

Attachment
Occasional Contributor
Posts: 9

Re: Left and Right aling title on same line in RTF output

It is working.

Thank you very much.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 1580 views
  • 0 likes
  • 2 in conversation