As the first step in the decommissioning of 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 X Commands within a SAS Program to Issue Commands to Windows or MS-DOS

From sasCommunity
Revision as of 20:58, 22 April 2014 by Frankfry (Talk | contribs)

Jump to: navigation, search

X commands can be used to make directories, move files, or even launch applications like MS Word or WinZip. The system options NOXWAIT and NOXSYNC are used to close the DOS window after the command executes, and to keep the SAS session active, respectively:

options noxwait noxsync;
***create a file folder;
x "%str(md %"D:\Staff\Mary Otterness\&sysdate9.%" )";

***activate WinZip and zip all of the sas datasets in a folder;
x " ""D:\Program Files\WinZip\WINZIP32.EXE"" -a
	""D:\My files\my zipped data &"" 
	""D:\My files\*.sas7bdat"" ";

***launch MS Word;
X '"D:\Program Files\Microsoft Office\OFFICE11\WINWORD.exe"';

Note that the commands above should be modified to reflect the locations of applications on your own computer.

....see also

....see also

Submitted By Otterm1