| 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 |
|
| In-Reply-To: | <200704041915.l34IhDZJ027967@malibu.cc.uga.edu> |
| 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:
x FILE;
?
_________________________________________________________________
Mortgage refinance is Hot. *Terms. Get a 5.375%* fix rate. Check savings
https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h2bbb&disc=y&vers=925&s=4056&p=5117
|