Date: Mon, 12 Dec 2005 21:16:48 -0500
Reply-To: Zach Peery <zpeery@NATURE.BERKELEY.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Zach Peery <zpeery@NATURE.BERKELEY.EDU>
Subject: Manipulating many input files
Content-Type: text/plain; charset=ISO-8859-1
I have a series of input files – say c:\a.txt, c:\b.txt,..., c:\z.txt –
and would like to perform the same very simple operation for each file.
The the ultimate goal is to write the files in their modified form back to
the same disk location but with a new name. The following performs the
operation for one file, but is there a simple way to do this for a whole
bunch of files?
data example;
infile ‘c:\a.txt’;
input x;
y = x + 1;
file ‘c:a_new.txt’;
put x y;
run;
Many thanks for any assistance. Zach
|