Performing Traffic Lighting in a Custom Table Template

Traffic lighting is a technique that uses fonts and colors to call attention to particular results within a larger table. Two ways to specify traffic lighting in output created from a custom table template are available to you. Just as with PROC PRINT, PROC REPORT, and PROC TABULATE, you can perform traffic lighting through user-defined formats that specify style attribute values such as BACKGROUND=, FOREGROUND=, or FONT_FACE=. The second way to perform traffic lighting is with the PROC TEMPLATE statement CELLSTYLE-AS. The CELLSTYLE-AS statement is unique to table templates.

The template HR_TRAFFIC below applies both methods. The column for DEPARTMENT applies format $DFONT. The column BONUSAMT ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.