Opening and Closing Output Data Sets

You might think that the results of every procedure between two ODS OUTPUT statements and an ODS OUTPUT CLOSE statement are sent to an output data set, but that's not quite true. After you open the ODS OUTPUT destination, it captures every specified object that is created before the next ODS OUTPUT CLOSE statement.

A complication can arise, however, if the ODS OUTPUT CLOSE statement occurs before SAS comes to another procedure step, DATA step, RUN statement, or QUIT statement. Without such a step boundary, the procedure is not finished when ODS closes the OUTPUT destination because the ODS OUTPUT statement executes immediately. In this situation, you might not get the ODS output data sets you expect.

The ...

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.