<?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 csv import fails to open all records in file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/csv-import-fails-to-open-all-records-in-file/m-p/966351#M376107</link>
    <description>&lt;P&gt;Any way to find out why few records are failing to open with SAS.&lt;/P&gt;</description>
    <pubDate>Mon, 12 May 2025 19:22:29 GMT</pubDate>
    <dc:creator>sum_sand</dc:creator>
    <dc:date>2025-05-12T19:22:29Z</dc:date>
    <item>
      <title>csv import fails to open all records in file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/csv-import-fails-to-open-all-records-in-file/m-p/966351#M376107</link>
      <description>&lt;P&gt;Any way to find out why few records are failing to open with SAS.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 19:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/csv-import-fails-to-open-all-records-in-file/m-p/966351#M376107</guid>
      <dc:creator>sum_sand</dc:creator>
      <dc:date>2025-05-12T19:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: csv import fails to open all records in file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/csv-import-fails-to-open-all-records-in-file/m-p/966353#M376108</link>
      <description>&lt;P&gt;Open the CSV file in a text editor like Notepad++ and look for malformed rows. Embedded carriage returns in text columns is one reason why this can occur. If the CSV is small and there are only a few rows to fix then manually editing it then reimporting it is the quickest approach.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 20:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/csv-import-fails-to-open-all-records-in-file/m-p/966353#M376108</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-05-12T20:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: csv import fails to open all records in file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/csv-import-fails-to-open-all-records-in-file/m-p/966360#M376112</link>
      <description>&lt;P&gt;it's a large csv. Is there any way to find these embedded carriage returns - other than manual.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 22:25:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/csv-import-fails-to-open-all-records-in-file/m-p/966360#M376112</guid>
      <dc:creator>sum_sand</dc:creator>
      <dc:date>2025-05-12T22:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: csv import fails to open all records in file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/csv-import-fails-to-open-all-records-in-file/m-p/966361#M376113</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide more context as to what is happening, by "failing to open" do you mean some csv file records are not appearing in an output data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As well as what has already been said, what code have you used and what does your log show? Please use the "Insert SAS Code" and "Insert Code" icons, respectively.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also how many records were you expecting and how many did you get?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If appropriate, are you able to provide a small example with data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notepad++ can be used to show non-printable characters in files, including end-of-line (EOL) characters, via pulldown menu View &amp;gt; Show Symbol &amp;gt; Show End of Line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 22:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/csv-import-fails-to-open-all-records-in-file/m-p/966361#M376113</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2025-05-12T22:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: csv import fails to open all records in file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/csv-import-fails-to-open-all-records-in-file/m-p/966362#M376114</link>
      <description>&lt;P&gt;You should also show the log with the generated data step created by Proc Import and ALL of the related messages or notes. Several of the conditions that can cause a behavior of incomplete import will provide clues in the LOG. Copy the text from the log and on the forum open a text box using the &amp;lt;/&amp;gt; icon above the message box and paste the entire log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you should make sure that the GUESSINGROWS option is set to MAX. Otherwise the properties for all the variables and records are set by examining only&amp;nbsp; a few observations. If your data file is "large" it may well be that some of the observations are not included because of incomplete examination of the file by the procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note, if you have a description of the contents of the file and all of the fields you may want to share that with us as well so we can compare the Import generated data step for accuracy. Or write your own data step.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 22:41:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/csv-import-fails-to-open-all-records-in-file/m-p/966362#M376114</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2025-05-12T22:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: csv import fails to open all records in file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/csv-import-fails-to-open-all-records-in-file/m-p/966380#M376120</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/470984"&gt;@sum_sand&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Any way to find out why few records are failing to open with SAS.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not sure what that means.&amp;nbsp; If the file is being truncated that is usually caused by data step assuming it should stop when it sees the "DOS end of file" character.&amp;nbsp; There is an IGNOREDOSEOF option you can add to the INFILE statement to stop that.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/importing-data-stops-SAS-in-the-middle-of-a-textfile-without/td-p/652791" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/importing-data-stops-SAS-in-the-middle-of-a-textfile-without/td-p/652791&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if your file has that character in it then you might have bigger issue since it is not something that would normally appear in a TEXT file, which CSV files are.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 01:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/csv-import-fails-to-open-all-records-in-file/m-p/966380#M376120</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-05-13T01:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: csv import fails to open all records in file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/csv-import-fails-to-open-all-records-in-file/m-p/966445#M376135</link>
      <description>&lt;P&gt;Thank you, Tom!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IGNOREDOSEOF option infile statement helped to solve this issue!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 20:37:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/csv-import-fails-to-open-all-records-in-file/m-p/966445#M376135</guid>
      <dc:creator>sum_sand</dc:creator>
      <dc:date>2025-05-13T20:37:12Z</dc:date>
    </item>
  </channel>
</rss>

