Date: Tue, 13 Jan 2009 09:49:59 -0500
Reply-To: "Gerstle, John (CDC/CCID/NCHHSTP)" <yzg9@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Gerstle, John (CDC/CCID/NCHHSTP)" <yzg9@CDC.GOV>
Subject: Re: How to Programmatically deassign a Libname
In-Reply-To: <c2192a610901130553j13c11180wd4f14edc06f8b7ee@mail.gmail.com>
Content-Type: text/plain; charset=us-ascii
Sas_learner,
I often go with this sort of set up:
%let inputpath = C:\temp;
Libname temp "&inputpath";
This makes it easier to change paths if/when data moves. I would
presume that this would work regardless to the operating system.
John Gerstle
Scientific Information Specialist
Centers for Disease Control and Prevention
NCHHSTP\DHAP-SE\QSDMB\Data Management Team
Phone: 404-639-3980
Fax: 404-639-8642
Email: yzg9 at cdc dot gov
>>-----Original Message-----
>>From: owner-sas-l@listserv.uga.edu
[mailto:owner-sas-l@listserv.uga.edu]
>>On Behalf Of SAS_learner
>>Sent: Tuesday, January 13, 2009 8:54 AM
>>To: SAS(r) Discussion
>>Subject: How to Programatically deassign a Libname
>>
>>hello guys,
>>
>>Right now I am chaniging my programs to work on Windows that are
written
>>on
>>Unix. As part of of it I am using same Libnames with the change of
path
>>and
>>syntax. Here I want to know if there is way to deassign all the
libnames
>>that are assigned before say for example I have Libname Temp "C;\temp"
to
>>Temp"D:\Temp\Sas" . I know SAS would pick up the second one as path
but
>>just
>>want to make sure that it does not take the First one.
>>
>>And any of you have any macro or code which work on windows that would
>>pick
>>the Folder name and assign the necessary libnames irrespective of what
>>Operating system I am using ??
>>
>>TIA
>>SL
|