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 (October 1998, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 9 Oct 1998 15:50:03 -0400
Reply-To:     "Ravi, Prasad" <Prasad.Ravi@WL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         "Ravi, Prasad" <Prasad.Ravi@WL.COM>
Subject:      Re: Determine fileref currently in use
Comments: To: "Scheibert, Valinda" <Valinda.Scheibert@OFM.WA.GOV>
Content-Type: text/plain

Valinda:

I am not aware of any function or command to capture the active fileref or filename, except there are functions like FILEREF, FILENAME to check for the existence of any known fileref or filename. Also function like PATHNAME will list out the actual name of the external file.

However

FILENAME _ALL_ LIST;

will write all active filerefs to the SAS log.

Hope this helps,

Prasad Ravi CRS Parke-Davis

> -----Original Message----- > From: Scheibert, Valinda [SMTP:Valinda.Scheibert@OFM.WA.GOV] > Sent: Friday, October 09, 1998 3:08 PM > To: SAS-L@UGA.CC.UGA.EDU > Subject: Determine fileref currently in use > > I've written a macro that checks date values and reports if they are > out of > range. This macro is called from a program that is writes out data to > several flat files and so has many FILE statements pointing to > external > files. > > I would like to capture the fileref currently in use at the top of my > macro, > write to the log, and then restore the original fileref at the end of > my > macro. > > Does anyone know how I can capture the "in-use" fileref/filename? Is > this > even possible? > > Thanks.


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