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 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 6 Dec 2005 16:52:16 -0800
Reply-To:     David L Cassell <davidlcassell@MSN.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         David L Cassell <davidlcassell@MSN.COM>
Subject:      Re: fimename with space
In-Reply-To:  <200512062310.jB6M7eH7020379@mailgw.cc.uga.edu>
Content-Type: text/plain; format=flowed

Haili.Sun.Shen@GMAIL.COM wrote: >Anybody has experience to read a filename with space inside it? e.g., >file name is "abstract acs". I tried to use quote with this file name >but it won't work. thanks. > >data myfile; >set abstract acs; (how to do it?) >run;

Is this a flat file that you want to read into SAS? If so, then you have to learn the difference between using SET to read SAS data sets and using INFILE and INPUT to read text files. That's a pretty important difference. Once you have that down, you can do something like this:

options validvarname=any;

data myfile; infile 'pathtofile\abstract acs'; <whatever else you need ...>

HTH, David -- David L. Cassell mathematical statistician Design Pathways 3115 NW Norwood Pl. Corvallis OR 97330

_________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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