This script neither processes nor creates data. It interacts directly with the SAS environment to manage the display of logs and outputs.
1 Code Block
MACRO DEFINITION
Explanation : This block defines a SAS macro named `clean`. When called, this macro executes a series of `dm` (Display Manager) commands to interact with the SAS user interface windows. Specifically:
- `dm output 'clear' continue;`: Clears the content of the output window.
- `dm log 'clear' continue;`: Clears the content of the SAS log window.
- `dm odsresult 'clear' continue;`: Clears the content of the ODS (Output Delivery System) results window.
The 'continue' option after each command ensures that the SAS program continues its execution even if the specified window is not open or does not exist in the current environment.
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.