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.


Tips:Use SAS DM Commands to Save and then Clear Your SAS Log

From sasCommunity
Jump to: navigation, search


As part of the decommissioning effort for sasCommunity.org this article/tip has been migrated to communities.sas.com.

The new home for this article/tip is Use SAS DM Commands to Save and then Clear Your SAS Log (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)



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