<?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 csv to process line-by-line in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/reading-csv-to-process-line-by-line/m-p/330262#M74031</link>
    <description>&lt;P&gt;I believe you need INFILE statement option TRUNCOVER.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2017 18:39:46 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2017-02-06T18:39:46Z</dc:date>
    <item>
      <title>reading csv to process line-by-line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-csv-to-process-line-by-line/m-p/330260#M74030</link>
      <description>&lt;P&gt;In the past I've been able to read in a csv file to process it line-by-line, but for some reason the file I'm working on now only imports every other line. &amp;nbsp;Any information you can provide is appreciated. &amp;nbsp;Here's my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data cleaned; &lt;BR /&gt; missing;&lt;BR /&gt; infile "C:\temp\test.csv" lrecl=2000;&lt;BR /&gt; length lines $2000; &lt;BR /&gt; input lines $1-2000; &lt;BR /&gt; keep lines tag ;&lt;/P&gt;
&lt;P&gt;if _N_ eq 1 then do;&lt;BR /&gt; find_CR_re=prxparse('/\n/'); /* Find carriage returns */&lt;BR /&gt; end;&lt;BR /&gt; retain find_CR_re;&lt;/P&gt;
&lt;P&gt;if prxmatch(find_CR_re,lines) then tag=1; /* Looking for embedded carriage returns in line*/&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 18:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-csv-to-process-line-by-line/m-p/330260#M74030</guid>
      <dc:creator>Ryanb2</dc:creator>
      <dc:date>2017-02-06T18:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: reading csv to process line-by-line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-csv-to-process-line-by-line/m-p/330262#M74031</link>
      <description>&lt;P&gt;I believe you need INFILE statement option TRUNCOVER.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 18:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-csv-to-process-line-by-line/m-p/330262#M74031</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2017-02-06T18:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: reading csv to process line-by-line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-csv-to-process-line-by-line/m-p/330266#M74032</link>
      <description>&lt;P&gt;Thanks. &amp;nbsp;That did it! &amp;nbsp;Much appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 18:50:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-csv-to-process-line-by-line/m-p/330266#M74032</guid>
      <dc:creator>Ryanb2</dc:creator>
      <dc:date>2017-02-06T18:50:09Z</dc:date>
    </item>
  </channel>
</rss>

