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 (April 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 17 Apr 2002 12:29:53 +0200
Reply-To:   "Laproi, L.G.E (Louis)" <louis.laproi@HOOGEHUYS.NL>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Laproi, L.G.E (Louis)" <louis.laproi@HOOGEHUYS.NL>
Subject:   Re: filename problem
Comments:   To: Bas Pruijn <bas.pruijn@CMG.NL>
Content-Type:   text/plain; charset="WINDOWS-1252"

filename foo 'c:\temp\f*.txt'; data test; length leesin $20.; infile foo FILENAME=leesin; input x; put leesin; b = leesin; run;

-----Oorspronkelijk bericht----- Van: Bas Pruijn [mailto:bas.pruijn@CMG.NL] Verzonden: woensdag 17 april 2002 11:25 Aan: SAS-L@LISTSERV.UGA.EDU Onderwerp: filename problem

Hi all,

I have a problem retrieving the fysical filename of a fileref I use.

This is the situation: filename foo 'c:\temp\f*.txt'; data test; attrib x lenght=$10 format=$10. informat $10.; input x; run;

When I submit this code I get the following note in my log NOTE: The infile FOO is: File Name=c:\temp\f_test_document.txt, RECFM=V,LRECL=256

What I want to get into a variable is the filename from this infile. I tried %sysfunc(pathname(foo)); This gives me c:\temp\f*.txt

Also in the sashelp.vextfl (dictionary.extfiles) this complete filename is not present.

Where can I find this filename??

Greetings, Bas

********************************************************************* Dit e-mailbericht is alleen bestemd voor de geadresseerde(n). Gebruik door anderen is niet toegestaan. Indien u niet de geadresseerde(n) bent wordt u verzocht de verzender hiervan op de hoogte te stellen en het bericht te verwijderen. Door de electronische verzending kunnen aan de inhoud van dit bericht geen rechten worden ontleend. ********************************************************************** This e-mail message is intended to be exclusively for the addressee. If you are not the intended recipient you are kindly requested not to make any use whatsoever of the contents and to notify the sender immediately by returning this e-mail message. No rights can be derived from this message. **********************************************************************


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