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

 

 

proc report data=sashelp.class nowindows split='~';

column name 'Result~_' age sex weight height;

run;

 

 

If I give sigle '_' I'm getting small line above the variables I need a line for all spin header variables exact .

Is there any logic for it? 

 

For example for spinner header variables there 10 variables and I want a line above all the ten variables how many '_' should i need to give?

                                          Result

                                  __________________

Required Output: name       age  sex height weight

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Hi:

  If you use STYLE=JOURNAL with ODS RTF, this technique also works.

cynthia

ods rtf file='c:\temp\span_underline.rtf' style=journal;
ods escapechar='^';
proc report data=sashelp.class;
  column name 
     ('^{style[borderbottomcolor=black borderbottomwidth=2px]Result}' age height weight);
run;
ods rtf close;

View solution in original post

3 REPLIES 3
Reeza
Super User

Have you tried modifying the style instead?

What output are you using?

 


@rajeshalwayswel wrote:

 

Is there any logic for it? 

 

 


Of course - but it depends on what you're trying to acomplish which isn't that clear.

 

If you search some papers on PROC REPORT you'll find examples

Ksharp
Super User

ods escapechar="^";
proc report...;
  columns x ("^R'\brdrb\brdrs\brdrw15 'Powers" y z) ;


Cynthia_sas
SAS Super FREQ

Hi:

  If you use STYLE=JOURNAL with ODS RTF, this technique also works.

cynthia

ods rtf file='c:\temp\span_underline.rtf' style=journal;
ods escapechar='^';
proc report data=sashelp.class;
  column name 
     ('^{style[borderbottomcolor=black borderbottomwidth=2px]Result}' age height weight);
run;
ods rtf close;

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 3 replies
  • 736 views
  • 5 likes
  • 4 in conversation