BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
unnati
Obsidian | Level 7
%let pgm = l_test ;
ods tagsets. file = "&_output/&pgm..rtf; proc report nowd data=class style(report)=[rules=none frame=void] style(header)=[background=white borderbottomcolor=black borderbottomwidth=2 background=_undef_]; col ('^S={borderbottomcolor=black borderbottomwidth=2} ' ('^S={borderbottomcolor=white borderbottomwidth=2 } ' '^S={borderbottomcolor=white borderbottomwidth=2 } ' name) ('^S={borderbottomcolor=black borderbottomwidth=2}this is spanned' ('^S={borderbottomcolor=black borderbottomwidth=2} A' age sex) ('^S={borderbottomcolor=white borderbottomwidth=2' _empty) ('^S={borderbottomcolor=black borderbottomwidth=2} B' weight height))); define _empty/' ' style(column)={cellwidth=1% borderrightcolor=red borderrightwidth=5}; compute after _page_ / style={bordertopcolor=black bordertopwidth=2}; line ' '; endcomp; run; ods tagsets.rtf close;

 Hello All,

 

I was trying to use proc report style option but some reason it is not been resolving.  I have tried using data from sashelp library and attached is my output. Can anyone help why it is not resolving in my SAS EG ?

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

I think you have left out ODS ESCAPECHAR

 

Here are the first four lines, which work for me

 

%let pgm = l_test ;
ods escapechar='^';
ods tagsets.rtf file = "abc.rtf";
proc report nowd data=class

 

PS: In the future, please do not attach files. Any time you need to show us output, make a screen capture and include it in your reply using the "Insert Photos" icon, which looks like a little camera. In particular, many people refuse to download Microsoft Office documents as they can besecurity threats.

 

 

 

 

--
Paige Miller

View solution in original post

1 REPLY 1
PaigeMiller
Diamond | Level 26

I think you have left out ODS ESCAPECHAR

 

Here are the first four lines, which work for me

 

%let pgm = l_test ;
ods escapechar='^';
ods tagsets.rtf file = "abc.rtf";
proc report nowd data=class

 

PS: In the future, please do not attach files. Any time you need to show us output, make a screen capture and include it in your reply using the "Insert Photos" icon, which looks like a little camera. In particular, many people refuse to download Microsoft Office documents as they can besecurity threats.

 

 

 

 

--
Paige Miller

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 1 reply
  • 3010 views
  • 0 likes
  • 2 in conversation