LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 4 Apr 2007 20:05:17 +0000
Reply-To:   toby dunn <tobydunn@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   toby dunn <tobydunn@HOTMAIL.COM>
Subject:   Re: DOS Command from a SAS Program
Comments:   To: seatedcoin@GMAIL.COM
In-Reply-To:   <>
Content-Type:   text/plain; format=flowed

Roland ,

Use the call system:

options noxwait; data _null_; input flag $ name $8.; if upcase(flag)='Y' then do; command='md c:\'||name; call system(command); end; datalines; Y mydir Y junk2 N mydir2 Y xyz ; Run ;

Toby Dunn

To sensible men, every day is a day of reckoning. ~John W. Gardner

The important thing is this: To be able at any moment to sacrifice that which we are for what we could become. ~Charles DuBois

Don't get your knickers in a knot. Nothing is solved and it just makes you walk funny. ~Kathryn Carpenter

From: Roland Rivers <seatedcoin@GMAIL.COM> Reply-To: Roland Rivers <seatedcoin@GMAIL.COM> To: SAS-L@LISTSERV.UGA.EDU Subject: Re: DOS Command from a SAS Program Date: Wed, 4 Apr 2007 15:15:37 -0400

Thanks, Toby. I know about the X command. If I had SAS dataset named FILE which contains a list of DOS commands would I code it:



_________________________________________________________________ Mortgage refinance is Hot. *Terms. Get a 5.375%* fix rate. Check savings

Back to: Top of message | Previous page | Main SAS-L page