BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
SanjayAhir
Obsidian | Level 7

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";

1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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

4 REPLIES 4
RW9
Diamond | Level 26 RW9
Diamond | Level 26

What you have should work -

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

SanjayAhir
Obsidian | Level 7

Thank you for you answer.

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

RW9
Diamond | Level 26 RW9
Diamond | Level 26

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;

SanjayAhir
Obsidian | Level 7

It is working.

Thank you very much.

sas-innovate-2024.png

Today is the last day to save with the early bird rate! Register today for just $695 - $100 off the standard rate.

 

Plus, pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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