BookmarkSubscribeRSS Feed
Babloo
Rhodochrosite | Level 12

I've a code like below. When I run this proc report, .xml appears as attached. If you see the attachment, you can see that second line is only half coloured, but I would like to get a colour for a complete line as like first line. How to do that? Please advise.

ODS tagsets.excelxp file='/usr/sas/tir/work/log_table.xml' style=statistical

  options(autofilter='ALL'  sheet_name='log_analysis'  sheet_interval='none' embedded_titles='Yes');

  title;

title1 'Log Analysis Report';

proc Report data=log_table box nowd missing out=work.log_table_final

  style(header) = {background=white foreground=black FONT_WEIGHT = bold bordertopcolor=black borderleftcolor=white

  borderrightcolor=white borderbottomcolor=black};

  columns fname1 Date_TimeStamp1 date  Status processid1 userid1 Details;

  define fname1/style(header)=[background=lightgreen] width =45  display;

  define Date_TimeStamp1/"Date Timestamp1" style(header)=[background=lightgreen] width =16  display;

  define Date/style(header)=[background=lightgreen] width=16 display;

  define Status/ style(header)=[background=lightgreen]  width =5 display;

  define processid1/ style(header)=[background=lightgreen] width =10  display;

  define userid1/ style(header)=[background=lightgreen] width =20  display;

  define Details/style(header)=[background=lightgreen] width =60  display;

run;

ods tagsets.excelxp close;

ods listing;

ods listing close;

5 REPLIES 5
RW9
Diamond | Level 26 RW9
Diamond | Level 26

There is nothing attached.

Babloo
Rhodochrosite | Level 12

I could not attach

Babloo
Rhodochrosite | Level 12

I tHink witHout attaHment also someone Can understand my question.

Ksharp
Super User

You attached a Photo to illustrate this .

Cynthia_sas
Diamond | Level 26

Hi, not sure what you want to do with the title versus the headers. But as an addition comment, options like BOX and WIDTH= are ignored by ODS destinations, since they are LISTING-only options. Also, I am not entirely sure that ODS TAGSETS.EXCELXP will even use your bordertopcolor, borderbottomcolor, etc styles. I think that may be ignored as well. You might want to work with Tech Support on this.

cynthia

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 3421 views
  • 0 likes
  • 4 in conversation