<?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 import multiple csv files and skip the header rows of all files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/import-multiple-csv-files-and-skip-the-header-rows-of-all-files/m-p/250877#M47330</link>
    <description>&lt;P&gt;each csv file has a header row. when I used the code below, the header row of the first file is skpped, but all header rows from the second file were kept.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mydata;
infile "c:\temp\*.csv" dlm=',' missover dsd lrecl=32767 firstobs=2;
input
var1
var2 $
var3
var4 
...
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;how to solve this problem? Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2016 16:39:59 GMT</pubDate>
    <dc:creator>fengyuwuzu</dc:creator>
    <dc:date>2016-02-18T16:39:59Z</dc:date>
    <item>
      <title>import multiple csv files and skip the header rows of all files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-multiple-csv-files-and-skip-the-header-rows-of-all-files/m-p/250877#M47330</link>
      <description>&lt;P&gt;each csv file has a header row. when I used the code below, the header row of the first file is skpped, but all header rows from the second file were kept.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mydata;
infile "c:\temp\*.csv" dlm=',' missover dsd lrecl=32767 firstobs=2;
input
var1
var2 $
var3
var4 
...
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;how to solve this problem? Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 16:39:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-multiple-csv-files-and-skip-the-header-rows-of-all-files/m-p/250877#M47330</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2016-02-18T16:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: import multiple csv files and skip the header rows of all files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-multiple-csv-files-and-skip-the-header-rows-of-all-files/m-p/250883#M47331</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its good to check the search first, there are many posts on this, for example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-do-I-write-a-macro-to-import-multiple-text-files-that-have/ta-p/223627" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-do-I-write-a-macro-to-import-multiple-text-files-that-have/ta-p/223627&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Help-merging-multiple-CSV-files-to-a-dataset/m-p/184804/highlight/true#M35071" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Help-merging-multiple-CSV-files-to-a-dataset/m-p/184804/highlight/true#M35071&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/problem-of-using-macro-to-import-multiple-csv-files/m-p/86785/highlight/true#M24791" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/problem-of-using-macro-to-import-multiple-csv-files/m-p/86785/highlight/true#M24791&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 16:41:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-multiple-csv-files-and-skip-the-header-rows-of-all-files/m-p/250883#M47331</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-02-18T16:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: import multiple csv files and skip the header rows of all files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/import-multiple-csv-files-and-skip-the-header-rows-of-all-files/m-p/250891#M47336</link>
      <description>&lt;P&gt;Start by looking up the INFILE statement option EOV=. &amp;nbsp;It is useful for determining the first line of each file when reading from a concatenated FILEREF.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 17:19:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/import-multiple-csv-files-and-skip-the-header-rows-of-all-files/m-p/250891#M47336</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-02-18T17:19:58Z</dc:date>
    </item>
  </channel>
</rss>

