BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.

Occasionally you might want to suspend output generation to a destination. You don't want to close it per se; you simply want to disable it for a while, then re-enable it. Closing the destination may not work anyway. (HTML can be closed and reopened with careful use of NO_BOTTOM_MATTER, NO_TOP_MATTER and file appending, but you're out of luck with PDF, for example.) What to do?

To suspend output, you can use the ODS SELECT/EXCLUDE statement. Imagine that you have an ODS HTML destination open. To suspend it, just say:

ods html select none;

or:

ods html exclude all;

When you're ready to resume ODS HTML output, say:

ods html select all;

or:

ods html exclude none;

-- David Kelley, SAS

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

For a longer explanation of ODS CLOSE, see "What is the best way to suppress ODS output in SAS?" The article also describes the use of the NOPRINT option, which is available in some of the old SAS procedures. 

 

For programmers who might be tempted to use ODS _ALL_ CLOSE instead, don't do it. ODS CLOSE has several advantages, which you can read about in the article "Five reasons to use ODS EXCLUDE to suppress SAS output."

View solution in original post

1 REPLY 1
Rick_SAS
SAS Super FREQ

For a longer explanation of ODS CLOSE, see "What is the best way to suppress ODS output in SAS?" The article also describes the use of the NOPRINT option, which is available in some of the old SAS procedures. 

 

For programmers who might be tempted to use ODS _ALL_ CLOSE instead, don't do it. ODS CLOSE has several advantages, which you can read about in the article "Five reasons to use ODS EXCLUDE to suppress SAS output."

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 8519 views
  • 3 likes
  • 2 in conversation