<?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: Reading a text file with embedded EOF characters in it in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-a-text-file-with-embedded-EOF-characters-in-it/m-p/359623#M84576</link>
    <description>&lt;PRE&gt;


data test;
infile 'c:\smtp.txt' ignoredoseof;
input;
put _infile_;
run;
 


&lt;/PRE&gt;</description>
    <pubDate>Thu, 18 May 2017 12:12:18 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2017-05-18T12:12:18Z</dc:date>
    <item>
      <title>Reading a text file with embedded EOF characters in it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-a-text-file-with-embedded-EOF-characters-in-it/m-p/359606#M84568</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I analyze log files which historically have been text based; with the increase in hacking attacks, these now contain binary data from other servers.&amp;nbsp; SAS can't read past certain locations and I suspect there is an embedded EOF character in them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried several options on the filename and infile statements to read the 11 lines of the attached sample.&amp;nbsp; Is there something I can use that will read all 11 lines?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;infile 'c:\smtp.txt';&lt;/P&gt;
&lt;P&gt;input;&lt;/P&gt;
&lt;P&gt;put _infile_;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;only reports 4 lines read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 11:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-a-text-file-with-embedded-EOF-characters-in-it/m-p/359606#M84568</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2017-05-18T11:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a text file with embedded EOF characters in it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-a-text-file-with-embedded-EOF-characters-in-it/m-p/359621#M84574</link>
      <description>&lt;P&gt;This seems to work fine for me:&lt;/P&gt;
&lt;PRE&gt;data want;
  infile "c:\smtp.txt" lrecl=32767 dsd;
  length res $2000;
  input res $;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 May 2017 12:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-a-text-file-with-embedded-EOF-characters-in-it/m-p/359621#M84574</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-05-18T12:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a text file with embedded EOF characters in it</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-a-text-file-with-embedded-EOF-characters-in-it/m-p/359623#M84576</link>
      <description>&lt;PRE&gt;


data test;
infile 'c:\smtp.txt' ignoredoseof;
input;
put _infile_;
run;
 


&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 May 2017 12:12:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-a-text-file-with-embedded-EOF-characters-in-it/m-p/359623#M84576</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-05-18T12:12:18Z</dc:date>
    </item>
  </channel>
</rss>

