Date: Tue, 11 Mar 2008 06:38:10 -0700
Reply-To: vicks <vikaslbishnoi@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: vicks <vikaslbishnoi@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Automate running SAS code and creation of folders/directories
at regular interval
Content-Type: text/plain; charset=ISO-8859-1
Thanks Bill.
I was able to create the directory structure.
Now, the problem I am facing is copying the sas files from the earlier
directory to the current (new) directory.
I am not quite familiar with the x term commands.
Although I did try this:
DATA _null_;
week_date=today()-1;
old_week_date=today()-8;
call symput('oldstamp',put(old_week_date,yymmddN8.));
call symput('datestamp',put(week_date,yymmddN8.));
RUN;
/* options noxwait; */
x mkdir "&DATESTAMP";
x mkdir "&DATESTAMP./code";
x mkdir "&DATESTAMP./data";
x cp "/home/user/&OLDSTAMP./code/program1.sas /home/user/&DATESTAMP./
code/program1.sas";
cp "/home/user/&OLDSTAMP./code/program2.sas /home/user/&DATESTAMP./
code/program2.sas";
In the above code
- noxwait shows as an unrecognized option!
- and the copying of sas programs using the x terminal cp command does
not work!!!
Thanks again for all your help.