Clear the results viewer in SAS 9.4?

16,045

I believe you need to run the following:

dm 'odsresults; clear';

or just type odsresults;clear in the SAS command box. This works for me in 9.3, can't see why it would be different in 9.4.

For further info - http://support.sas.com/kb/4/159.html

Share:
16,045
The Baron
Author by

The Baron

SAS-savvy Millenial.

Updated on June 04, 2022

Comments

  • The Baron
    The Baron almost 2 years

    When I searched, all the results came up for SAS 9.3. That suggested I use the commands:

    ods html close; *STOPS WRITING TO THE CURRENT RESULTS VIEWER;

    ods html; *OPENS A NEW RESULTS VIEWER;

    I'm running SAS 9.4 (Base SAS) and this doesn't work for me, which leads me to the conclusion that the way to clear the results viewer has changed from SAS 9.3 to SAS 9.4.

    What to do?

    • Allan Bowe
      Allan Bowe over 7 years
      What exactly are you running - Base SAS, EG, SAS Studio? Can you post a screenshot to help us identify what you are trying to achieve?
    • The Baron
      The Baron over 7 years
      Base SAS. Can't post a screenshot, but my results viewer is full of output (proc datasets, proc means, proc sgplot, proc glimmix, proc freq). I'd like the output to clear each time I submit, but "ods html close; ods html;" doesn't clear anything from my results viewer.
    • tecoup
      tecoup over 7 years
      Please state what you are trying to accomplish. I can't tell.
    • The Baron
      The Baron over 7 years
      @Aaron Specifically, I'd like the output from my commands to disappear.
    • Reeza
      Reeza over 7 years
      To be clear, the code above resets the HTML file, but the old file with the previous results still exist. Using the code below removes the history of results which is different than resetting the output file.
  • radhikesh93
    radhikesh93 almost 7 years
    I am using sas 9.4 and dm 'odsresults; clear'; worked for me. Thanks!