As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Difference between revisions of "Tips:Use SAS DM Commands to Save and then Clear Your SAS Log"

From sasCommunity
Jump to: navigation, search
(Scheduled June 2, 2011)
m
Line 16: Line 16:
 
- You can have as many CATEGORY tag lines as you want.
 
- You can have as many CATEGORY tag lines as you want.
 
-->
 
-->
 +
<noinclude>
 
[[Category: Base SAS]]
 
[[Category: Base SAS]]
 
[[Category:Display Manager]]
 
[[Category:Display Manager]]
 
[[Category:DM Statement]]
 
[[Category:DM Statement]]
 +
</noinclude>
 
<!-- Provide links to other resources:
 
<!-- Provide links to other resources:
 
- If the links are pages on sasCommunity update the "WikiReadMore" line and replace "PAGENAME" with the name of the sasCommunity.org page.
 
- If the links are pages on sasCommunity update the "WikiReadMore" line and replace "PAGENAME" with the name of the sasCommunity.org page.

Revision as of 21:03, 11 May 2015

SAS 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:

***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 &sysdate9..log" replace';

***Clear the log window;
DM "log; clear; ";

....see also

....see also

....see also


Submitted By Otterm1