<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to clear the library because it is still in use in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unable-to-clear-the-library-because-it-is-still-in-use/m-p/61336#M7312</link>
    <description>Hi:&lt;BR /&gt;
  If the ODS PATH RESET does not work for you, as described in the Tech Support Note, then you might consider contacting SAS Tech Support. There may be other issues with your code. I do notice that your libref is called "macrolib" -- it may be possible that if you are putting templates and autocall macros in the same location that access and/or updating of the macro code is preventing the reassignment of the library. But that's only speculation on my part. I generally keep my macro programs separate from my template store.&lt;BR /&gt;
 &lt;BR /&gt;
Again, Tech Support can look at all your code and your libraries and help you figure out the best solution.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Thu, 13 Nov 2008 14:20:51 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-11-13T14:20:51Z</dc:date>
    <item>
      <title>Unable to clear the library because it is still in use</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unable-to-clear-the-library-because-it-is-still-in-use/m-p/61335#M7311</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I have created a new template stored and using it with the following lines&lt;BR /&gt;
&lt;BR /&gt;
Libname macrolib "F:\sudhakar";&lt;BR /&gt;
ods path macrolib.rptstyle (UPDATE) &lt;BR /&gt;
         sashelp.tmplmst(READ);&lt;BR /&gt;
&lt;BR /&gt;
If i execute the above line once again for the second program i am getting the error  &lt;BR /&gt;
ERROR: Unable to clear or reassign the library macrolib because it is still in use ;&lt;BR /&gt;
ERROR: Error in libname statement&lt;BR /&gt;
&lt;BR /&gt;
I have checked with SAS Links which gives the work around in the below link &lt;BR /&gt;
"http://support.sas.com/kb/1/525.html"&lt;BR /&gt;
&lt;BR /&gt;
but it is not solved yet for me &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks &lt;BR /&gt;
Sudhakar&lt;BR /&gt;
Help me to solve this</description>
      <pubDate>Thu, 13 Nov 2008 12:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unable-to-clear-the-library-because-it-is-still-in-use/m-p/61335#M7311</guid>
      <dc:creator>Sudhakar_A</dc:creator>
      <dc:date>2008-11-13T12:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clear the library because it is still in use</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unable-to-clear-the-library-because-it-is-still-in-use/m-p/61336#M7312</link>
      <description>Hi:&lt;BR /&gt;
  If the ODS PATH RESET does not work for you, as described in the Tech Support Note, then you might consider contacting SAS Tech Support. There may be other issues with your code. I do notice that your libref is called "macrolib" -- it may be possible that if you are putting templates and autocall macros in the same location that access and/or updating of the macro code is preventing the reassignment of the library. But that's only speculation on my part. I generally keep my macro programs separate from my template store.&lt;BR /&gt;
 &lt;BR /&gt;
Again, Tech Support can look at all your code and your libraries and help you figure out the best solution.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 13 Nov 2008 14:20:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unable-to-clear-the-library-because-it-is-still-in-use/m-p/61336#M7312</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-11-13T14:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clear the library because it is still in use</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unable-to-clear-the-library-because-it-is-still-in-use/m-p/61337#M7313</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
Thank you very much &lt;BR /&gt;
&lt;BR /&gt;
Yes ur right i am using Macro and template in one location now i removed the template, even though its is giving the same error i have stored catalog macro in that location its is saying the same error&lt;BR /&gt;
&lt;BR /&gt;
What can i do</description>
      <pubDate>Thu, 13 Nov 2008 14:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unable-to-clear-the-library-because-it-is-still-in-use/m-p/61337#M7313</guid>
      <dc:creator>Sudhakar_A</dc:creator>
      <dc:date>2008-11-13T14:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clear the library because it is still in use</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unable-to-clear-the-library-because-it-is-still-in-use/m-p/61338#M7314</link>
      <description>I highly recommend that you contact Tech Support. If the ODS PATH RESET didn't work and if separating the templates from the macros was not the issue, then Tech Support can investigate in more depth. You can open a track by following the instructions at this link:&lt;BR /&gt;
 &lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 13 Nov 2008 16:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unable-to-clear-the-library-because-it-is-still-in-use/m-p/61338#M7314</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-11-13T16:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to clear the library because it is still in use</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unable-to-clear-the-library-because-it-is-still-in-use/m-p/61339#M7315</link>
      <description>I have already posted the problem to SAS.&lt;BR /&gt;
&lt;BR /&gt;
I found the cause for that and i made one work around.&lt;BR /&gt;
&lt;BR /&gt;
Cause :&lt;BR /&gt;
I am doing the initializing of the ods path and macro path once in the setup file. &lt;BR /&gt;
and calling this setup program in all the program because of that it is giving error. &lt;BR /&gt;
&lt;BR /&gt;
Work around:&lt;BR /&gt;
In Setup file i have checked the existence of library before libname statement.&lt;BR /&gt;
&lt;BR /&gt;
Now it is working fine ..&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the effort and suggestions&lt;BR /&gt;
&lt;BR /&gt;
Sudhakar</description>
      <pubDate>Fri, 14 Nov 2008 09:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Unable-to-clear-the-library-because-it-is-still-in-use/m-p/61339#M7315</guid>
      <dc:creator>Sudhakar_A</dc:creator>
      <dc:date>2008-11-14T09:56:57Z</dc:date>
    </item>
  </channel>
</rss>

