<?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 close an opened table with open instruction in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/close-an-opened-table-with-open-instruction/m-p/941049#M42246</link>
    <description>&lt;P&gt;hello&lt;/P&gt;
&lt;PRE&gt;data HAVE ;
x=1;
run ;

%let mv_id_table = %sysfunc(open(work.HAVE)); 

proc datasets library=WORK memtype=data nolist;
delete HAVE ;
quit ;
&lt;/PRE&gt;
&lt;P&gt;by executing this code, the note is "File WORK.HAVE (memtype=DATA) cannot be deleted because it is in use."&lt;/P&gt;
&lt;P&gt;how could I close the HAVE table ?&lt;/P&gt;
&lt;P&gt;thanks in advance for your help&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;Nasser&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2024 13:18:54 GMT</pubDate>
    <dc:creator>Nasser_DRMCP</dc:creator>
    <dc:date>2024-08-27T13:18:54Z</dc:date>
    <item>
      <title>close an opened table with open instruction</title>
      <link>https://communities.sas.com/t5/New-SAS-User/close-an-opened-table-with-open-instruction/m-p/941049#M42246</link>
      <description>&lt;P&gt;hello&lt;/P&gt;
&lt;PRE&gt;data HAVE ;
x=1;
run ;

%let mv_id_table = %sysfunc(open(work.HAVE)); 

proc datasets library=WORK memtype=data nolist;
delete HAVE ;
quit ;
&lt;/PRE&gt;
&lt;P&gt;by executing this code, the note is "File WORK.HAVE (memtype=DATA) cannot be deleted because it is in use."&lt;/P&gt;
&lt;P&gt;how could I close the HAVE table ?&lt;/P&gt;
&lt;P&gt;thanks in advance for your help&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;Nasser&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 13:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/close-an-opened-table-with-open-instruction/m-p/941049#M42246</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2024-08-27T13:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: close an opened table with open instruction</title>
      <link>https://communities.sas.com/t5/New-SAS-User/close-an-opened-table-with-open-instruction/m-p/941052#M42247</link>
      <description>&lt;P&gt;Close the file before attempting to delete it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let rc= %sysfunc(close(&amp;amp;mv_id_table )); 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Aug 2024 13:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/close-an-opened-table-with-open-instruction/m-p/941052#M42247</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2024-08-27T13:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: close an opened table with open instruction</title>
      <link>https://communities.sas.com/t5/New-SAS-User/close-an-opened-table-with-open-instruction/m-p/941053#M42248</link>
      <description>&lt;P&gt;When you open a DATASET (as opposed some generic FILE) with the OPEN() function it returns a reference to that dataset.&amp;nbsp; So to close it you pass that reference back to the CLOSE() function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let rc=%sysfunc(close(&amp;amp;mv_id_table)) ;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Aug 2024 13:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/close-an-opened-table-with-open-instruction/m-p/941053#M42248</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-08-27T13:23:46Z</dc:date>
    </item>
  </channel>
</rss>

