The SAS Output Delivery System and reporting techniques

How do you suspend generation of output to an ODS destination?

Reply
SAS Employee
Posts: 174

How do you suspend generation of output to an ODS destination?

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:
[pre]
ods html select none;
[/pre]
or:
[pre]
ods html exclude all;
[/pre]
When you're ready to resume ODS HTML output, say:
[pre]
ods html select all;
[/pre]
or:
[pre]
ods html exclude none;
[/pre]
-- David Kelley, SAS


Message was edited by: David@SAS at Mar 8, 2006 1:12 PM
Message was edited by: David@SAS at Mar 10, 2006 2:09 PM
Ask a Question
Discussion stats
  • 0 replies
  • 337 views
  • 0 likes
  • 1 in conversation