BookmarkSubscribeRSS Feed
RonHackett
Calcite | Level 5
Trying to limit the HTML BCOLOR on a FOOTNOTE so that it doesn't scroll across the entire width of the screen (See attached file). My footnote code looks like this: footnote1 h=4.0 bcolor=red c=black "Utilization Level >= 95% "; footnote2 h=4.0 bcolor=yellow c=black "Utilization Level 85%-94%"; footnote3 h=4.0 bcolor=green c=black "Utilization Level 75%-84%"; footnote4 h=4.0 bcolor='light blue' c=black "Utilization Level <75% ";
Sample Footnote BCOLOR issue.jpg
2 REPLIES 2
Ksharp
Super User
ods escapechar='~';
footnote1 h=4.0 c=black "~S={background=red}Utilization Level >= 95% "; 
footnote2 h=4.0 bcolor=yellow c=black "Utilization Level 85%-94%"; 

proc print data=sashelp.class;run;
RonHackett
Calcite | Level 5

Thank you!  That worked.

 

Code looks like this now:

  footnote1 h=4.0 c=black "~S={background=red}Utilization Level >= 95% ";                                                               
  footnote2 h=4.0 c=black "~S={background=yellow}Utilization Level 85%-94%";                                                            
  footnote3 h=4.0 c=black "~S={background=green}Utilization Level 75%-84%";                                                             
  footnote4 h=4.0 c=black "~S={background=light blue}Utilization Level <75%";                                                           
  footnote5 h=3.0 c=black j=l "Date Created: %sysfunc(date(),worddate.)";   

 

And results are posted as JPG attachement.

 


Sample Footnote BCOLOR fix.jpg

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch 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
  • 1809 views
  • 0 likes
  • 2 in conversation