Example 6.4. Adding “Traffic Lighting” to a Report Created by PROC REPORT

Goal

Customize the appearance of the report produced in Example 2.7 by modifying style attributes with ODS. Use “traffic lighting” to draw attention to specific results by changing the color of rows depending upon the value of a cell in the row. Send the output to a nonlisting destination.

Report

Example Features

Data SetLIPIDS
Report ExampleExample 2.7
Featured StepPROC REPORT
Featured Step Statements and OptionsPROC REPORT statement ODS option: STYLE(HEADER)=

DEFINE statement ODS option: STYLE=

CALL DEFINE statement within COMPUTE blocks
Output Destination ...

Get SAS® Guide to Report Writing: Examples, Second Edition 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.