<?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 importing csv file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/importing-csv-file/m-p/783637#M249929</link>
    <description>&lt;P&gt;i want to import data from a csv file with data step and infile instruction. i have in the file a colon comment in whitch i can have caracters such as -&amp;gt;. and it seems like sas inteprete ligne containing this caracter like end of the file. So, in the file if i have 500 lines and the 10th line have this caractere, SAS import just 10 lines and end the execution without errors or warning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;someone can help me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thks&lt;/P&gt;</description>
    <pubDate>Thu, 02 Dec 2021 14:59:29 GMT</pubDate>
    <dc:creator>ajulio4</dc:creator>
    <dc:date>2021-12-02T14:59:29Z</dc:date>
    <item>
      <title>importing csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-csv-file/m-p/783637#M249929</link>
      <description>&lt;P&gt;i want to import data from a csv file with data step and infile instruction. i have in the file a colon comment in whitch i can have caracters such as -&amp;gt;. and it seems like sas inteprete ligne containing this caracter like end of the file. So, in the file if i have 500 lines and the 10th line have this caractere, SAS import just 10 lines and end the execution without errors or warning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;someone can help me?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thks&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 14:59:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-csv-file/m-p/783637#M249929</guid>
      <dc:creator>ajulio4</dc:creator>
      <dc:date>2021-12-02T14:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: importing csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-csv-file/m-p/783641#M249933</link>
      <description>&lt;P&gt;You need to provide us a sample csv or code to work with please. You can take a look at some examples here..&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/n0w4il5k169l5an13j1p7jn3o2ni.htm" target="_blank"&gt;SAS Help Center: Reading Raw Data: Examples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 15:06:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-csv-file/m-p/783641#M249933</guid>
      <dc:creator>CarmineVerrell</dc:creator>
      <dc:date>2021-12-02T15:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: importing csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-csv-file/m-p/783649#M249936</link>
      <description>&lt;P&gt;A colon does not cause any issues:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
file "~/test.csv";
input line $80.;
put line;
datalines;
xxx
yyy
:
x:
 :
:x
;

data check;
infile "~/test.csv" truncover;
input line $80.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You will see that all 6 lines are read.&lt;/P&gt;
&lt;P&gt;Please post the complete log of your step into a box opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 15:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-csv-file/m-p/783649#M249936</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-12-02T15:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: importing csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-csv-file/m-p/783654#M249938</link>
      <description>&lt;P&gt;It is a little unclear what your issue is (an actual SAS log would help).&lt;/P&gt;
&lt;P&gt;But it looks like your data step is stopping reading the file in the middle?&lt;/P&gt;
&lt;P&gt;If so the most likely cause is the "DOS end of file" character.&amp;nbsp; There is an INFILE option to treat that character as a normal character instead of an end of file indicator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;H4 class="xisDoc-argument"&gt;IGNOREDOSEOF&lt;/H4&gt;
&lt;/BLOCKQUOTE&gt;
&lt;DIV class="xisDoc-argumentDescription"&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;is used in the context of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-nobr"&gt;I/O&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;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.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Dec 2021 15:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-csv-file/m-p/783654#M249938</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-12-02T15:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: importing csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-csv-file/m-p/783674#M249950</link>
      <description>thks so much it works this option. i can now import all of my file lines</description>
      <pubDate>Thu, 02 Dec 2021 15:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-csv-file/m-p/783674#M249950</guid>
      <dc:creator>ajulio4</dc:creator>
      <dc:date>2021-12-02T15:44:53Z</dc:date>
    </item>
  </channel>
</rss>

