Date: Thu, 20 Jul 2006 13:35:39 -0700
Reply-To: Poohbear <liuberyl@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Poohbear <liuberyl@GMAIL.COM>
Subject: How to add the file name as a new variable to the file?
Content-Type: text/plain; charset="iso-8859-1"
I have several (over 300) .csv files in one folder, all of them have
similar filenames, just different preface numbers. what I want to do is
add the filename as a new variable to each file,
ex., my filename is 012345_tally_report.csv
in the file there are over 50 variables. and I wanna add a variable
named 'filename', which is '012345_tally_report'.
I am wondering how can I do this task by using SAS?
Any help would be highly appreciated!