<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SAS Tip: Use SAS DM Commands to Save and then Clear Your SAS Log in SAS Tips from the Community</title>
    <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Use-SAS-DM-Commands-to-Save-and-then-Clear-Your-SAS-Log/m-p/476012#M188</link>
    <description>&lt;P&gt;SAS&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;DM (display manager) commands can be used to call windowing and text editor commands within a SAS program. In this example, the log is saved to a permanent file, and then it is cleared:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;***put something in the log;
proc print data=sashelp.flags (obs=1);
run;

***save the log to a permanent file, overwriting if necessary;
dm 'log; file "C:\My files\log 1 &amp;amp;sysdate9..log" replace';

***Clear the log window;
DM "log; clear; ";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;This tip was originally published by&amp;nbsp;&lt;SPAN&gt;Mary Rosenbloom on sasCommunity.org.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jul 2018 14:04:21 GMT</pubDate>
    <dc:creator>SAS_Tipster</dc:creator>
    <dc:date>2018-07-06T14:04:21Z</dc:date>
    <item>
      <title>SAS Tip: Use SAS DM Commands to Save and then Clear Your SAS Log</title>
      <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Use-SAS-DM-Commands-to-Save-and-then-Clear-Your-SAS-Log/m-p/476012#M188</link>
      <description>&lt;P&gt;SAS&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;DM (display manager) commands can be used to call windowing and text editor commands within a SAS program. In this example, the log is saved to a permanent file, and then it is cleared:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;***put something in the log;
proc print data=sashelp.flags (obs=1);
run;

***save the log to a permanent file, overwriting if necessary;
dm 'log; file "C:\My files\log 1 &amp;amp;sysdate9..log" replace';

***Clear the log window;
DM "log; clear; ";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;This tip was originally published by&amp;nbsp;&lt;SPAN&gt;Mary Rosenbloom on sasCommunity.org.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 14:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Use-SAS-DM-Commands-to-Save-and-then-Clear-Your-SAS-Log/m-p/476012#M188</guid>
      <dc:creator>SAS_Tipster</dc:creator>
      <dc:date>2018-07-06T14:04:21Z</dc:date>
    </item>
  </channel>
</rss>

