Naming and Labeling the DATA Step Output Object

The previous chapters showed some examples that changed the top level node name in the Results window by including the ODS PROCLABEL statement. When you use ODS in the DATA step, the ODS PROCLABEL statement does not change the name of the top level node. However, you can change its name in a DATA step that sends output to an ODS destination by adding the OBJECT= and OBJECTLABEL= suboptions to the ODS option in the FILE PRINT statement. The two suboptions are added to the FILE PRINT statement in the following program.

ODS RTF FILE='LabelODS.rtf'; ODS PDF FILE='LabelODS.pdf'; ODS HTML FILE='LabelODS.html' STYLE=sasweb; title 'Default PUT _ODS_ of All Variables'; data _null_; set traffic; FILE PRINT ...

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.