<?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: Infile error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Infile-error/m-p/75248#M16204</link>
    <description>Use of INFILE is not normally a standalone "procedure" but it is part of a DATA step.  You will receive a most effective response if you take the time to share your SAS-generated log that gets the error - ideally, the entire log with all SAS code revealed.&lt;BR /&gt;
&lt;BR /&gt;
Also, there are SAS NOTEs regarding the "file in use" message you are receiving.&lt;BR /&gt;
&lt;BR /&gt;
Lastly, information about your SAS version, OS platform, whether executing SAS local or remote-connected will help as well.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Wed, 14 Apr 2010 13:55:51 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-04-14T13:55:51Z</dc:date>
    <item>
      <title>Infile error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infile-error/m-p/75247#M16203</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to import data, using the SAS Enterprise guide 9.2.&lt;BR /&gt;
I've made a copy of a bunch of dbf-files, and want to import them in SAS.&lt;BR /&gt;
&lt;BR /&gt;
However, for two of them it works out perfectly, but for three of them I get an error saying:&lt;BR /&gt;
ERROR: File is in use, C:\Documents and Settings\tder\Local &lt;BR /&gt;
       Settings\Temp\SEG588\Bonsuit-1afed9ac1d624546a5506bdb837f5867.txt.&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
&lt;BR /&gt;
Looking at the code, it uses first a DATA step and then an infile statement. The error occurs during that infile procedure.&lt;BR /&gt;
&lt;BR /&gt;
Of course, the file isn't in use or opened in any way, and I can't figure out what else might be the problem. Especially because two files, which I copied and used in the same way, were imported without a problem.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the help,&lt;BR /&gt;
Thomas</description>
      <pubDate>Wed, 14 Apr 2010 08:07:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infile-error/m-p/75247#M16203</guid>
      <dc:creator>ThomasD</dc:creator>
      <dc:date>2010-04-14T08:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Infile error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infile-error/m-p/75248#M16204</link>
      <description>Use of INFILE is not normally a standalone "procedure" but it is part of a DATA step.  You will receive a most effective response if you take the time to share your SAS-generated log that gets the error - ideally, the entire log with all SAS code revealed.&lt;BR /&gt;
&lt;BR /&gt;
Also, there are SAS NOTEs regarding the "file in use" message you are receiving.&lt;BR /&gt;
&lt;BR /&gt;
Lastly, information about your SAS version, OS platform, whether executing SAS local or remote-connected will help as well.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 14 Apr 2010 13:55:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infile-error/m-p/75248#M16204</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-04-14T13:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Infile error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infile-error/m-p/75249#M16205</link>
      <description>Ok, I'm working with SAS 9.2, on Windows, with a SAS local connection.&lt;BR /&gt;
&lt;BR /&gt;
This is the complete log that gets the error. I had only included a part of it in the previous post.&lt;BR /&gt;
&lt;BR /&gt;
Code generated by a SAS task&lt;BR /&gt;
   &lt;BR /&gt;
   Generated on Friday, April 16, 2010 at 2:01:02 PM&lt;BR /&gt;
   By task:     Import Data&lt;BR /&gt;
   &lt;BR /&gt;
   Source file: F:\DLA\MEET EN WEETCEL\E -&lt;BR /&gt;
   Documentatie\Documentatie\Databestanden\Cultuur, Jeugd,&lt;BR /&gt;
   Sport\CWB\DATA CWB 20100414\Bonsuit.DBF&lt;BR /&gt;
   Server:      Local File System&lt;BR /&gt;
   &lt;BR /&gt;
   Output data: SASUSER.Bonsuit10&lt;BR /&gt;
   Server:      Local&lt;BR /&gt;
   -------------------------------------------------------------------- */&lt;BR /&gt;
&lt;BR /&gt;
/* --------------------------------------------------------------------&lt;BR /&gt;
   This DATA step reads the data values from a temporary text file&lt;BR /&gt;
   created by the Import Data task. The values within the temporary&lt;BR /&gt;
   text file were extracted from the dBase file.&lt;BR /&gt;
   -------------------------------------------------------------------- */&lt;BR /&gt;
24         DATA SASUSER.Bonsuit10;&lt;BR /&gt;
25             LENGTH&lt;BR /&gt;
26                 BONID            $ 13&lt;BR /&gt;
27                 AANVRAAGID       $ 8&lt;BR /&gt;
28                 GIDS               8&lt;BR /&gt;
29                 SEIZOENID        $ 4 ;&lt;BR /&gt;
30             FORMAT&lt;BR /&gt;
31                 BONID            $CHAR13.&lt;BR /&gt;
32                 AANVRAAGID       $CHAR8.&lt;BR /&gt;
33                 GIDS             BEST12.&lt;BR /&gt;
34                 SEIZOENID        $CHAR4. ;&lt;BR /&gt;
35             INFORMAT&lt;BR /&gt;
36                 BONID            $CHAR13.&lt;BR /&gt;
37                 AANVRAAGID       $CHAR8.&lt;BR /&gt;
38                 GIDS             BEST12.&lt;BR /&gt;
39                 SEIZOENID        $CHAR4. ;&lt;BR /&gt;
40            &lt;B&gt; INFILE 'C:\Documents and Settings\tder\Local&lt;BR /&gt;
40       ! Settings\Temp\SEG5868\Bonsuit-cfc0e737ab5e41eb9226176a36705da1.txt'&lt;/B&gt;41                 LRECL=1&lt;BR /&gt;
42                 ENCODING="WLATIN1"&lt;BR /&gt;
43                 TERMSTR=CRLF&lt;BR /&gt;
44                 DLM='7F'x&lt;BR /&gt;
45                 MISSOVER&lt;BR /&gt;
46                 DSD ;&lt;BR /&gt;
47             INPUT&lt;BR /&gt;
48                 BONID            : $CHAR13.&lt;BR /&gt;
49                 AANVRAAGID       : $CHAR8.&lt;BR /&gt;
50                 GIDS             : BEST32.&lt;BR /&gt;
51                 SEIZOENID        : $CHAR4. ;&lt;BR /&gt;
52         RUN;&lt;BR /&gt;
&lt;BR /&gt;
2                                           The SAS System                13:59 Friday, April 16, 2010&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;ERROR: File is in use, C:\Documents and Settings\tder\Local &lt;BR /&gt;
       Settings\Temp\SEG5868\Bonsuit-cfc0e737ab5e41eb9226176a36705da1.txt.&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;/B&gt;&lt;BR /&gt;
WARNING: The data set SASUSER.BONSUIT10 may be incomplete.  When this step was stopped there were 0 &lt;BR /&gt;
         observations and 4 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.03 seconds&lt;BR /&gt;
      cpu time            0.01 seconds&lt;BR /&gt;
      &lt;BR /&gt;
&lt;BR /&gt;
53         &lt;BR /&gt;
54         QUIT; RUN;&lt;BR /&gt;
55&lt;BR /&gt;
&lt;BR /&gt;
I had already checked the SAS notes, especially "Problem Note 18166: DATA step with data lines may fail in SAS Enterprise Guide".&lt;BR /&gt;
&lt;BR /&gt;
The suggestion to add  DLM='09'x  doesn't work. (I've replaced DLM='7F'x by that.) &lt;BR /&gt;
&lt;BR /&gt;
Thomas</description>
      <pubDate>Fri, 16 Apr 2010 12:25:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infile-error/m-p/75249#M16205</guid>
      <dc:creator>ThomasD</dc:creator>
      <dc:date>2010-04-16T12:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Infile error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infile-error/m-p/75250#M16206</link>
      <description>Since this problem is in code and data generated by SAS itself, you are probably going to need to call tech support to get it resolved.&lt;BR /&gt;
&lt;BR /&gt;
An alternative approach to import would be to use ODBC; however that depends on your software supporting the .dbf file type providing it.</description>
      <pubDate>Fri, 16 Apr 2010 15:22:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infile-error/m-p/75250#M16206</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-04-16T15:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Infile error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infile-error/m-p/75251#M16207</link>
      <description>Ok, thanks for the answer. &lt;BR /&gt;
I think I'll go for the tech support.</description>
      <pubDate>Mon, 19 Apr 2010 07:37:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infile-error/m-p/75251#M16207</guid>
      <dc:creator>ThomasD</dc:creator>
      <dc:date>2010-04-19T07:37:43Z</dc:date>
    </item>
  </channel>
</rss>

