<?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: ERROR: At least one file associated with fileref IMPORT is still in use. ERROR: Error in the FIL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-one-file-associated-with-fileref-IMPORT-is-still/m-p/806612#M317840</link>
    <description>&lt;P&gt;Are you trying to do some thing with the file that is active in the editor? Then the Editor has the file "in use".&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 18:55:44 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-04-07T18:55:44Z</dc:date>
    <item>
      <title>ERROR: At least one file associated with fileref IMPORT is still in use. ERROR: Error in the FILENAM</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-one-file-associated-with-fileref-IMPORT-is-still/m-p/806606#M317834</link>
      <description>&lt;P&gt;G'day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have placed a filename near the end of a SAS program&amp;nbsp; and am getting the following error message:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: At least one file associated with fileref IMPORT is still in use.&lt;BR /&gt;ERROR: Error in the FILENAME statement.&lt;/P&gt;
&lt;P&gt;This is the filename code. When I run the file SAS program.sas by itself, I don't get an error statement. Howeber, when I run the program the code below sits in, I get the error statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename importv 'C:\SAS Programs\SAS program.sas';
%include importv;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any help you can give will e much appreciated.&amp;nbsp; Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 18:41:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-one-file-associated-with-fileref-IMPORT-is-still/m-p/806606#M317834</guid>
      <dc:creator>jcis7</dc:creator>
      <dc:date>2022-04-07T18:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: At least one file associated with fileref IMPORT is still in use. ERROR: Error in the FIL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-one-file-associated-with-fileref-IMPORT-is-still/m-p/806612#M317840</link>
      <description>&lt;P&gt;Are you trying to do some thing with the file that is active in the editor? Then the Editor has the file "in use".&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 18:55:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-one-file-associated-with-fileref-IMPORT-is-still/m-p/806612#M317840</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-07T18:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: At least one file associated with fileref IMPORT is still in use. ERROR: Error in the FIL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-one-file-associated-with-fileref-IMPORT-is-still/m-p/806643#M317851</link>
      <description>&lt;P&gt;Can you help me understand:&amp;nbsp; When you ask, am I trying to do something with the file that is active in the editor,&amp;nbsp; do as you asking if&amp;nbsp; I&amp;nbsp; am trying to use a file that was created in the sas program that the filename statement is at the end of? Or are you asking if I'm trying to do something with the SAS program file that is in the filename statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your question, I selected the 'Break' button to cancel anything that had been running. Then I reran the program that the filename statement is at the end of, and no error came up.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, I closed SAS, reopened it and the program ran with no errors including the filename import statement at the end. I am trying to figure out if I'm doing something wrong and not do it again in the future. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 19:46:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-one-file-associated-with-fileref-IMPORT-is-still/m-p/806643#M317851</guid>
      <dc:creator>jcis7</dc:creator>
      <dc:date>2022-04-07T19:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: At least one file associated with fileref IMPORT is still in use. ERROR: Error in the FIL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-one-file-associated-with-fileref-IMPORT-is-still/m-p/806654#M317852</link>
      <description>&lt;P&gt;What is the name of the the program file that contains the shown statements? IF that name is&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt; 'C:\SAS Programs\SAS program.sas';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;then it is open in the editor and is used by the editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the program that contains those two lines has a different name then possibly another program is attempting to us SAS Program.sas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or possibly one or more of the statements inside the file when %included is in use. You may have to examine the contents of SAS Program.sas to see what external files may be used. Example: if that program is supposed to read another file that is open in the editor you could get that message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, in the future if you are going to show an ERROR do not separate it from the rest of the code. Include from the log the entire data step, procedure or other statements that are related to causing the error.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 20:45:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-one-file-associated-with-fileref-IMPORT-is-still/m-p/806654#M317852</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-07T20:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: At least one file associated with fileref IMPORT is still in use. ERROR: Error in the FIL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-one-file-associated-with-fileref-IMPORT-is-still/m-p/806657#M317854</link>
      <description>&lt;P&gt;To see more detail in the SAS log use the SOURCE2 option.&amp;nbsp; Either set it with an OPTIONS statement or include it in the %INCLUDE statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include importv / source2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 20:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-one-file-associated-with-fileref-IMPORT-is-still/m-p/806657#M317854</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-04-07T20:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: At least one file associated with fileref IMPORT is still in use. ERROR: Error in the FIL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-one-file-associated-with-fileref-IMPORT-is-still/m-p/806815#M317955</link>
      <description>&lt;P&gt;Thank you both&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 17:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-At-least-one-file-associated-with-fileref-IMPORT-is-still/m-p/806815#M317955</guid>
      <dc:creator>jcis7</dc:creator>
      <dc:date>2022-04-08T17:03:15Z</dc:date>
    </item>
  </channel>
</rss>

