BookmarkSubscribeRSS Feed
VCM
Obsidian | Level 7 VCM
Obsidian | Level 7

I need to create a report with spanning headers over the columns, then a line below the spanning headers, then the "main" headers, and then another line:

 

header.png

 

Using HEADLINE gives me the bottom line, of course, but is there a fast and easy way to create the first line, besides literally typing in a bunch of underscores?

 

 

VCM

 

2 REPLIES 2
ballardw
Super User

What code are you currently using and which ODS Style?

 

Typing underscores is likely to be unrewarding as changes to font size, font face, bold/italic, length of other text will mean things don't line up very well and depending on other factors may actually allow individual underscores to be see.

 

 

Cynthia_sas
Diamond | Level 26

Hi:
Without code, it's hard to speculate. It will make a difference about how you do it, depending on what your destination is and what initial style you're using. You have 2 approaches -- using a TEXTDECORATION style override or changing the bordertop... or borderbottom... style overrides. HEADLINE and HEADSKIP are LISTING only options, so they would NOT be giving your anything in ODS output. Your output looks like JOURNAL style, which has RULES=GROUPS turned on that might put the bottom line under the column headers.

 

This forum posting https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471278#M21... showed the use of border controls with PROC REPORT and ODS RTF to put an extra line into spanning headers. That person was using ACROSS items, so your use case might be different.

Cynthia

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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