LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (June 2001, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 25 Jun 2001 11:07:13 -0700
Reply-To:     Jeff Morison <jmt_mtf@YAHOO.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jeff Morison <jmt_mtf@YAHOO.COM>
Subject:      Thanks - Re: Directory exists or not??
In-Reply-To:  <B255A7BCBCA7DE4EAEE4E10268D55AA404DA1B@dsmntexch01.int.wellmark.com>
Content-Type: text/plain; charset=us-ascii

Thanks to all who responded, here is what I winded up coding, since all the functions are doing the same.

libname ct "c:\temp";

%macro test; %let y=%sysfunc(libref(ct)); %put &y; %if %sysfunc(libref(ct))=0 %then %do; %put "library exists"; %end; %else %do; %put "library does not exist"; %end; %mend;

%test;

--- "Hapeman, David E" <hapemande@WELLMARK.COM> wrote: > I believe fexist checks to see if a file exists, > while fileexist can > check to see if a directory exists. > > Dave Hapeman > (515) 245-4765 > hapemande@Wellmark.com > > > -----Original Message----- > From: Smith, Curtis, Mr, DCAA > [mailto:Curtis.Smith@DCAA.MIL] > Sent: Monday, June 25, 2001 12:13 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: Re: Directory exists or not?? > > > Yes, use the FEXIST function. > > -----Original Message----- > From: Jeff Morison [mailto:jmt_mtf@YAHOO.COM] > Sent: Monday, June 25, 2001 9:58 AM > To: SAS-L@LISTSERV.UGA.EDU > Subject: Directory exists or not?? > > > I know one way to check to see if a directory or > sub-directory in PC exists or not using LIBREF > function, > Are there any other easy ways or functions to find > that information?. > > Using V8.1 on NT. > > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail > http://personal.mail.yahoo.com/

__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/


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