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

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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