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
Content-Type: text/plain; charset=us-ascii
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.
Scientific Information Specialist
Centers for Disease Control and Prevention
NCHHSTP\DHAP-SE\QSDMB\Data Management Team
Email: yzg9 at cdc dot gov
>>On Behalf Of SAS_learner
>>Sent: Tuesday, January 13, 2009 8:54 AM
>>To: SAS(r) Discussion
>>Subject: How to Programatically deassign a Libname
>>Right now I am chaniging my programs to work on Windows that are
>>Unix. As part of of it I am using same Libnames with the change of
>>syntax. Here I want to know if there is way to deassign all the
>>that are assigned before say for example I have Libname Temp "C;\temp"
>>Temp"D:\Temp\Sas" . I know SAS would pick up the second one as path
>>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
>>the Folder name and assign the necessary libnames irrespective of what
>>Operating system I am using ??