BookmarkSubscribeRSS Feed
SanjayM
Calcite | Level 5
How to left justify the title.

I am using PROC REPORT and ODS tagsets.excelxp
2 REPLIES 2
SriluP
Calcite | Level 5
Use the option embedded_titles='yes' in the ODS Tagset statement and in the title statment type j=l; see the example code below.

ods tagsets.excelxp options(embedded_titles='yes' );

title j=l "Left justify the title";
Cynthia_sas
SAS Super FREQ
Hi:
Are you using any of the suboptions that normally impact the title??? Also, it depends on whether you mean the SAS title, which comes from a TITLE statement or an Excel header for printing, which comes from the PRINT_HEADER suboption.

You will have to look at the output in Print Preview mode to see the impact of the PRINT_HEADER suboption. the &L is the instruction for left-justifying the print header and the &R is the instruction for right-justifying the print header. You can read more about these and other options in the SAS log.

cynthia
[pre]
ods tagsets.excelxp file='c:\temp\just_title.xls' style=sasweb
options(doc='Help' embedded_titles='yes' print_header='&L String Left &R String Right' );

title 'SAS Title Centered on Table';
proc report data=sashelp.class(obs=3) nowd;
run;

title 'SAS Title Centered on Table';
proc report data=sashelp.class(obs=3) nowd;
run;

ods _all_ close;
[/pre]

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
  • 2 replies
  • 4789 views
  • 0 likes
  • 3 in conversation