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.


Tip of the Day:June 2

From sasCommunity
Jump to: navigation, search

sasCommunity Tip of the Day


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 June 2 (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; ";


Submitted By Otterm1



Feel free to comment on this tip.


Prior tip - Next tip - Random Tip

Submit a Tip