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 (December 2005, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


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