Creating Output Data Sets from Multiple Procedures: Part 2

To keep the definition in place across multiple procedures, we need to add an option to the ODS OUTPUT statement.

The PERSIST= option in the ODS OUTPUT statement tells ODS to concatenate the data sets from all the procedures in the program until an ODS OUTPUT CLOSE statement executes. The ODS OUTPUT statement is specified as follows. The data set created is called ALLODDS.

ODS OUTPUT "Odds Ratios"(PERSIST=PROC)=AllOdds;

Viewtable displays the ALLODDS data set in Figure 7.15.

The final data set will have variables from all the concatenated data sets. Variables defined in one output object but not defined in a second output object will have missing values for those variables in the observations ...

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.