BookmarkSubscribeRSS Feed
NickR
Quartz | Level 8
Hi,

I am using proc report with ODS to generate the output in RTF. I am getting the following warning message when generating the output. The output is OK but not sure why I'm getting this warning message. I know this problem is coming when defining label for 'rate' and 'name' variables. When I put a label for these variables, I am not getting any warning message. It's just only when I assign label as empty. Appreicate if some one can help me with this.

WARNING: Use of CELLWIDTH/OUTPUTWIDTH= in a spanning header or footer will rarely yield expected results. For conventional usage, specify outputwidth only for the data column cells.
WARNING: Use of CELLWIDTH/OUTPUTWIDTH= in a spanning header or footer will rarely yield expected results. For conventional usage, specify outputwidth only for the data column cells.


proc report data = final nowd split='|' spacing=1 missing
style = [outputwidth = 9 in]
style(header)=[asis = on just = center protectspecialchars = off]
style(column)=[asis = on protectspecialchars = off];

column mypage index var sort rate name cnt ;

define index / order order=internal noprint;
define var / order order=internal noprint;
define sort / order order=internal noprint;
define mypage / order order=internal noprint;
define rate / display ' ' style=[just=l cellwidth=25];
define name / display ' ' style=[just=l cellwidth=40];
define cnt / display 'Total' style=[just=l cellwidth=15] ;

break after mypage / page;
compute before index; line '' ; endcomp;
compute after _page_; line '' ; endcomp;
run ;

ods rtf close;
ods listing;
1 REPLY 1
NickR
Quartz | Level 8
One of my colleague helped me to fix this. No more warning messages when I changed

Style=[] statements to
style(column)=[] statement.

thank you.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 3566 views
  • 1 like
  • 1 in conversation