<?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 problem in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/infile-problem/m-p/57517#M16059</link>
    <description>If the issue is caused by a control character then eventually the following code will help:&lt;BR /&gt;
&lt;BR /&gt;
data want;&lt;BR /&gt;
 infile &lt;YOUR file=""&gt;;&lt;BR /&gt;
 input @;&lt;BR /&gt;
 _infile_=COMPRESS(_infile_, , "c");&lt;BR /&gt;
 input &lt;YOUR list="" of="" variables=""&gt;;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
If this works and you want to find the line with the control character then:&lt;BR /&gt;
&lt;BR /&gt;
if length(_infile_) ne length(COMPRESS(_infile_, , "c")) should do the job.&lt;BR /&gt;
&lt;BR /&gt;
You could of course also use find() or indexc() - but I assume compress will work faster.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick&lt;/YOUR&gt;&lt;/YOUR&gt;</description>
    <pubDate>Tue, 16 Feb 2010 09:08:49 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2010-02-16T09:08:49Z</dc:date>
    <item>
      <title>infile problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/infile-problem/m-p/57513#M16055</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I am using a simple infile statement to read in about 4 million records. For some reason sas stop at reading 700,00 and does not read the full file in. As the txt file is about 4gb i can not open it to see why. Having a look at the last record in the table i can not see why it is stopping. Any ideas? Thanks in advance</description>
      <pubDate>Mon, 15 Feb 2010 17:50:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/infile-problem/m-p/57513#M16055</guid>
      <dc:creator>sasbegginer</dc:creator>
      <dc:date>2010-02-15T17:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: infile problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/infile-problem/m-p/57514#M16056</link>
      <description>In case you are using Windows, you can find some file-splitter utility. Anyway, a piece of your log would be useful.</description>
      <pubDate>Mon, 15 Feb 2010 21:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/infile-problem/m-p/57514#M16056</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-15T21:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: infile problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/infile-problem/m-p/57515#M16057</link>
      <description>Agreed - SAS log with DATA step code would be helpful - and you may find setting END=EOF on the INFILE useful while doing some code like:&lt;BR /&gt;
&lt;BR /&gt;
IF EOF THEN PUTLOG _INFILE_;&lt;BR /&gt;
&lt;BR /&gt;
or use some HEX type SAS format to display the last record as SAS interprets the end-of-file condition.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 15 Feb 2010 23:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/infile-problem/m-p/57515#M16057</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-02-15T23:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: infile problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/infile-problem/m-p/57516#M16058</link>
      <description>If you are on a PC and your text file includes a CTRL-Z, SAS will stop reading it.  CTRL-Z is the (antique) end-of-file indicator left over from V6 days.</description>
      <pubDate>Tue, 16 Feb 2010 00:44:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/infile-problem/m-p/57516#M16058</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-02-16T00:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: infile problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/infile-problem/m-p/57517#M16059</link>
      <description>If the issue is caused by a control character then eventually the following code will help:&lt;BR /&gt;
&lt;BR /&gt;
data want;&lt;BR /&gt;
 infile &lt;YOUR file=""&gt;;&lt;BR /&gt;
 input @;&lt;BR /&gt;
 _infile_=COMPRESS(_infile_, , "c");&lt;BR /&gt;
 input &lt;YOUR list="" of="" variables=""&gt;;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
If this works and you want to find the line with the control character then:&lt;BR /&gt;
&lt;BR /&gt;
if length(_infile_) ne length(COMPRESS(_infile_, , "c")) should do the job.&lt;BR /&gt;
&lt;BR /&gt;
You could of course also use find() or indexc() - but I assume compress will work faster.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick&lt;/YOUR&gt;&lt;/YOUR&gt;</description>
      <pubDate>Tue, 16 Feb 2010 09:08:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/infile-problem/m-p/57517#M16059</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-02-16T09:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: infile problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/infile-problem/m-p/57518#M16060</link>
      <description>Perhaps the option&lt;BR /&gt;
&lt;BR /&gt;
IGNOREDOSEOF &lt;BR /&gt;
is used in the context of I/O operations on variable record format files. When this option is specified, any occurrence of ^Z is interpreted as character data and not as an end-of-file marker.</description>
      <pubDate>Tue, 16 Feb 2010 12:03:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/infile-problem/m-p/57518#M16060</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-02-16T12:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: infile problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/infile-problem/m-p/57519#M16061</link>
      <description>You aren't using Learning Edition, are you? &lt;BR /&gt;
If so, you are limited in the number of observations, so you could be hitting that limit.</description>
      <pubDate>Tue, 16 Feb 2010 16:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/infile-problem/m-p/57519#M16061</guid>
      <dc:creator>martha_sas</dc:creator>
      <dc:date>2010-02-16T16:13:31Z</dc:date>
    </item>
  </channel>
</rss>

