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 "Tip of the Day:May 13"

From sasCommunity
Jump to: navigation, search
(Scheduled I want to hear the sound of SOUNDEX)
(Scheduled Use X Commands within a SAS Program to Issue Commands to Windows or MS-DOS)
 
Line 5: Line 5:
 
sasCommunity Tip of the Day
 
sasCommunity Tip of the Day
 
</h1><div style="padding:10px;">
 
</h1><div style="padding:10px;">
{{Tips:I want to hear the sound of SOUNDEX}}
+
{{Tips:Use X Commands within a SAS Program to Issue Commands to Windows or MS-DOS}}
 
<div style="width:100%"><hr></div>
 
<div style="width:100%"><hr></div>
Feel free to [[Tips Talk:I want to hear the sound of SOUNDEX|comment]] on this tip.
+
Feel free to [[Tips Talk:Use X Commands within a SAS Program to Issue Commands to Windows or MS-DOS|comment]] on this tip.
 
</div>
 
</div>
 
</td></tr>
 
</td></tr>

Latest revision as of 23:18, 6 May 2011

sasCommunity Tip of the Day

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 &sysdate9..zip"" 
	""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.

Submitted By Otterm1



Feel free to comment on this tip.


Prior tip - Next tip - Random Tip

Submit a Tip