Date: Thu, 18 Nov 2004 08:37:12 -0500
Reply-To: Ed Heaton <EdHeaton@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Ed Heaton <EdHeaton@WESTAT.COM>
Subject: Re: libname lib1 ' ';
Content-Type: text/plain
Todd,
You have relative addressing here. I have to admit that I don't like this
execution of relative referencing. Instead, I would use...
LibName lib1 ".\" ;
on Windows or
LibName lib1 "./" ;
on Linux or Unix. Of course, I wouldn't use LIB1 as a library reference; it
says nothing about the contents of the library.
In the above references, the dot means "right here" and the slash or
backslash tells me that it's a directory. I like to use a backslash (on
Windows) at the end of directory specifications. I.e.: given...
FileName survey "..\phase1\data" ;
can you tell me whether DATA is a file or a directory? If I specify...
FileName survey "..\phase1\data\" ;
you know it's a directory and that you must supply the file name when you
use the fileRef. E.g.,
InFile survey(batch1.dat) ;
Oh yeah, two dots means the parent directory.
Ed
Edward Heaton, SAS Senior Systems Analyst,
Westat (An Employee-Owned Research Corporation),
1600 Research Boulevard, RW-3541, Rockville, MD 20850-3195
Voice: (301) 610-4818 Fax: (301) 610-5128
mailto:EdHeaton@Westat.com http://www.Westat.com
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of tpeer
Sent: Wednesday, November 17, 2004 4:34 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: libname lib1 ' ';
I've been analyzing anothers program and came accross the following
technique in a number of places...
LIBNAME LIB1 ' ';
...code...
DATA LIB1.FLTFILE;
SET LIB1.GLTFILE;
...
RUN;
To me LIB1 represents a null library set, but I can't figure out how you
store, let alone read from it. The only other thought I had was that this
is a working library.
I have no access to existing logs, nor any way to run the code (yet). All
I'm doing now is a dataflow analysis.
Can someone explain this to me?
Todd