<?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 and &amp;quot;End of Media&amp;quot; special character in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/INFILE-and-quot-End-of-Media-quot-special-character/m-p/904643#M357401</link>
    <description>Yep, it works! Thanks a lot!</description>
    <pubDate>Mon, 27 Nov 2023 14:53:04 GMT</pubDate>
    <dc:creator>saskaan</dc:creator>
    <dc:date>2023-11-27T14:53:04Z</dc:date>
    <item>
      <title>INFILE and "End of Media" special character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFILE-and-quot-End-of-Media-quot-special-character/m-p/904632#M357397</link>
      <description>&lt;P&gt;Hi there!&lt;BR /&gt;I'm trying to read in text file with "End of Media" special character in the middle of the file and SAS read all the data before that character only - is there any possibility to read in the whole file?&lt;/P&gt;&lt;PRE&gt;data TEST;
  infile "test.txt" truncover;
  length REC $400;
  input REC 1-400;
  LINE=_N_;
run;&lt;/PRE&gt;&lt;P&gt;File contain more than 40k records and in dataset I get only first 3000 records, the last one is the string with EM character in the middle of the string, so I see this first part of the string in the last record...&lt;BR /&gt;Are the any options to read text file line by line including special characters like "End of Media" or maybe to tell SAS to not use EM as EoF marker?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here is what Notepad++ shows when I'm looking into the file - please see 3rd line - there are some special characters in the line and one of them is EM which makes SAS to stop reading the data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saskaan_0-1701094528063.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90213i892AA359C78E2DCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="saskaan_0-1701094528063.png" alt="saskaan_0-1701094528063.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And what I get in dataset:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saskaan_0-1701094812442.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90214iE7F6826C789CD0EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="saskaan_0-1701094812442.png" alt="saskaan_0-1701094812442.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Anton.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 14:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFILE-and-quot-End-of-Media-quot-special-character/m-p/904632#M357397</guid>
      <dc:creator>saskaan</dc:creator>
      <dc:date>2023-11-27T14:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: INFILE and "End of Media" special character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFILE-and-quot-End-of-Media-quot-special-character/m-p/904636#M357400</link>
      <description>&lt;P&gt;Use the IGNOREDOSEOF option on the INFILE statement.&amp;nbsp; Or when defining the fileref using a FILENAME statement.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 16:34:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFILE-and-quot-End-of-Media-quot-special-character/m-p/904636#M357400</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-11-27T16:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: INFILE and "End of Media" special character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/INFILE-and-quot-End-of-Media-quot-special-character/m-p/904643#M357401</link>
      <description>Yep, it works! Thanks a lot!</description>
      <pubDate>Mon, 27 Nov 2023 14:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/INFILE-and-quot-End-of-Media-quot-special-character/m-p/904643#M357401</guid>
      <dc:creator>saskaan</dc:creator>
      <dc:date>2023-11-27T14:53:04Z</dc:date>
    </item>
  </channel>
</rss>

