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 (July 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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>
Organization: http://groups.google.com
Subject:      How to add the file name as a new variable to the file?
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset="iso-8859-1"

Hi all,

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!


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