<?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: How to import multiple CSV files while skipping their first X rows? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-CSV-files-while-skipping-their-first-X/m-p/698311#M213549</link>
    <description>&lt;P&gt;This is an enhanced version of the solution posted by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt; automatically processing all files of interest. Variables most likely not relevant for the created dataset are prefixed with an underscore.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   length 
      v1-v3 8
      _filename $ 200
   ;
   keep v1-v3;
   
   _rc = filename("mydir", "YOUR_PATH"); 
   _did = dopen("mydir"); 
   
   do _i = 1 to dnum(_did);
      _filename = dread(_did, _i);
      if prxmatch("/.*\.txt/i", trim(_filename)) then do;
         _fileVar = cats("YOUR_PATH\", _filename);
         
         infile dummy delimiter=',' filevar= _fileVar firstobs= 5;
         input v1--v3;
         output;
      end;
   end;
   
   _rc = dclose(_did);
   stop;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 12 Nov 2020 06:08:37 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2020-11-12T06:08:37Z</dc:date>
    <item>
      <title>How to import multiple CSV files while skipping their first X rows?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-CSV-files-while-skipping-their-first-X/m-p/698287#M213534</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use data step to import &amp;amp; merge many similarly structured CSV files into one, where their first few lines are like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;EM&gt;&lt;FONT face="georgia,palatino"&gt;Title&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;EM&gt;&lt;FONT face="georgia,palatino"&gt;Retrieved on xxx&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;EM&gt;&lt;FONT face="georgia,palatino"&gt;.&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;EM&gt;&lt;FONT face="georgia,palatino"&gt;Var1,Var2,Var3&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;EM&gt;&lt;FONT face="georgia,palatino"&gt;1,2,3...&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;EM&gt;&lt;FONT face="georgia,palatino"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Apparently the actual data begins at row 5, so I tried first:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="3" color="#000000"&gt;&lt;FONT face="georgia,palatino"&gt;&lt;CODE class=" language-sas"&gt;data Want;&lt;BR /&gt;infile '&amp;amp;path:\*.csv' dlm=',' missover dsd firstobs=5;&lt;BR /&gt;input var1 var2 var3;&lt;BR /&gt;run;&amp;nbsp;	&lt;/CODE&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the outcome turned out to be that the entering four rows were skipped for the first file, but not for the rest. Namely I had:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;EM&gt;&lt;FONT face="georgia,palatino"&gt;Var1,Var2,Var3&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;EM&gt;&lt;FONT face="georgia,palatino"&gt;1,2,3&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;EM&gt;&lt;FONT face="georgia,palatino"&gt;Title,.,.&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;EM&gt;&lt;FONT face="georgia,palatino"&gt;Retrieved on xxx,.,.&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;EM&gt;&lt;FONT face="georgia,palatino"&gt;.,.,.&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#000000"&gt;&lt;EM&gt;&lt;FONT face="georgia,palatino"&gt;4,5,6...&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;I then tried the infile option &lt;EM&gt;evo=&amp;nbsp;&lt;/EM&gt;to skip lines for every files:&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="3" color="#000000"&gt;&lt;FONT face="georgia,palatino"&gt;&lt;CODE class=" language-sas"&gt;data Want;&lt;BR /&gt;infile '&amp;amp;path:\*.csv' dlm=',' missover dsd evo=evo firstobs=5;&lt;BR /&gt;input @;&lt;BR /&gt;if evo then input;&lt;BR /&gt;input var1 var2 var3;&lt;BR /&gt;evo=0;&lt;BR /&gt;run;&amp;nbsp;&lt;/CODE&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But it didn't work. I have concrete confidence that the above would work for files with row 1 being its header and data beginning at row 2 when you set firstobs=2; However it seemed the same would not work for my scenario. Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 03:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-CSV-files-while-skipping-their-first-X/m-p/698287#M213534</guid>
      <dc:creator>SamVirgil96</dc:creator>
      <dc:date>2020-11-12T03:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple CSV files while skipping their first X rows?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-CSV-files-while-skipping-their-first-X/m-p/698306#M213545</link>
      <description>&lt;P&gt;Drop the "firstobs=" approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead you can use the FILENAME= option of the infile statement.&amp;nbsp; Comparing the current value of the filename= variable to its lagged value will let you know when you're starting a new csv file.&amp;nbsp; &amp;nbsp;Then, whenever that is the case, skip 4 records using "input #4".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  length fnam $30;
  infile 'c:\temp\*.csv' dlm=',' filename=fnam;
  input @;                          /* Set pointer to current record */
  if fnam^=lag(fnam) then input #4; /* New file?, then skip 4 records */
  input v1 v2 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In your example, you have&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;infile '&amp;amp;path:\*.csv' ...&lt;/P&gt;
&lt;P&gt;which would not work, since the macro processor would not resolve the macrovar &amp;amp;path, because it is in single quotes.&amp;nbsp; And I guess since you are appending a ":" to &amp;amp;path, that macrovar path is nothing more than a drive letter.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 04:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-CSV-files-while-skipping-their-first-X/m-p/698306#M213545</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-11-12T04:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple CSV files while skipping their first X rows?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-CSV-files-while-skipping-their-first-X/m-p/698308#M213547</link>
      <description>&lt;P&gt;It seems to work for me. Simplify your problem until you can pinpoint the issue.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file "&amp;amp;wdir\file1.txt";
  put 'Title';
  put 'Retrieved on xxx ';
  put '.               ';
  put 'Var1,Var2,Var3  ';
  put '1,2,3       ';
  file "&amp;amp;wdir\file2.txt";
  put 'Title';
  put 'Retrieved on xxx ';
  put '.               ';
  put 'Var1,Var2,Var3  ';
  put '4,5,6          ';
run;      

data _null_;
  do I=1,2;
    FILEVAR=cats("&amp;amp;wdir\file",I,".txt");
    infile DUMMY filevar=FILEVAR firstobs=5;
    input ;
    putlog _infile_;
  end;
  stop;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1,2,3 &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;4,5,6&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 05:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-CSV-files-while-skipping-their-first-X/m-p/698308#M213547</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-11-12T05:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple CSV files while skipping their first X rows?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-CSV-files-while-skipping-their-first-X/m-p/698311#M213549</link>
      <description>&lt;P&gt;This is an enhanced version of the solution posted by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt; automatically processing all files of interest. Variables most likely not relevant for the created dataset are prefixed with an underscore.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   length 
      v1-v3 8
      _filename $ 200
   ;
   keep v1-v3;
   
   _rc = filename("mydir", "YOUR_PATH"); 
   _did = dopen("mydir"); 
   
   do _i = 1 to dnum(_did);
      _filename = dread(_did, _i);
      if prxmatch("/.*\.txt/i", trim(_filename)) then do;
         _fileVar = cats("YOUR_PATH\", _filename);
         
         infile dummy delimiter=',' filevar= _fileVar firstobs= 5;
         input v1--v3;
         output;
      end;
   end;
   
   _rc = dclose(_did);
   stop;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Nov 2020 06:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-CSV-files-while-skipping-their-first-X/m-p/698311#M213549</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-11-12T06:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple CSV files while skipping their first X rows?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-CSV-files-while-skipping-their-first-X/m-p/698854#M213759</link>
      <description>&lt;P&gt;For some reason it's not working on my end. My environment is SAS Enterprise Guide 7.1 running on a Window 10. In fact, the effect of your code is exactly the same as running:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token step keyword" style="box-sizing: border-box; color: #0077aa; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt; want&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="box-sizing: border-box; color: #999999; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="token keyword" style="box-sizing: border-box; color: #0077aa; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;infile&lt;/SPAN&gt; &lt;SPAN class="token string" style="box-sizing: border-box; color: #669900; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;'c:\temp\*.csv'&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt; dlm&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string" style="box-sizing: border-box; color: #669900; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;','&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="box-sizing: border-box; color: #999999; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="token input" style="box-sizing: border-box; color: #000000; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;&lt;SPAN class="token input keyword" style="box-sizing: border-box; color: #0077aa;"&gt;input&lt;/SPAN&gt; v1 v2 ;&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="token step keyword" style="box-sizing: border-box; color: #0077aa; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation" style="box-sizing: border-box; color: #999999; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So I guess it's the examining the current file name with the lagged file name part that is not working. Thanks for your reply anyway.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2020 06:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-CSV-files-while-skipping-their-first-X/m-p/698854#M213759</guid>
      <dc:creator>SamVirgil96</dc:creator>
      <dc:date>2020-11-14T06:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple CSV files while skipping their first X rows?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-CSV-files-while-skipping-their-first-X/m-p/698855#M213760</link>
      <description>&lt;P&gt;In an effort to be more specific about my question, the following are the data sets I use:&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2020 06:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-CSV-files-while-skipping-their-first-X/m-p/698855#M213760</guid>
      <dc:creator>SamVirgil96</dc:creator>
      <dc:date>2020-11-14T06:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple CSV files while skipping their first X rows?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-CSV-files-while-skipping-their-first-X/m-p/698856#M213761</link>
      <description>&lt;P&gt;Hi! Your solution seems to work, but why is it only taking the first row of each file? The result is like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;filename Var1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Var2 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Var3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;file1 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;SPAN style="text-align: left; color: #333333; text-transform: none; line-height: 1.7142; text-indent: 0px; letter-spacing: normal; font-family: inherit; font-size: 16px; font-variant: normal; font-weight: 300; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; cursor: text; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;file1&lt;/SPAN&gt;(1,1)&amp;nbsp; &lt;SPAN style="text-align: left; color: #333333; text-transform: none; line-height: 1.7142; text-indent: 0px; letter-spacing: normal; font-family: inherit; font-size: 16px; font-variant: normal; font-weight: 300; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; cursor: text; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;file1&lt;/SPAN&gt;(1,2)&amp;nbsp; &lt;SPAN style="text-align: left; color: #333333; text-transform: none; line-height: 1.7142; text-indent: 0px; letter-spacing: normal; font-family: inherit; font-size: 16px; font-variant: normal; font-weight: 300; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; cursor: text; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;file1&lt;/SPAN&gt;(1,3)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;file2&lt;SPAN style="text-align: left; color: #333333; text-transform: none; line-height: 1.7142; text-indent: 0px; letter-spacing: normal; font-family: inherit; font-size: 16px; font-variant: normal; font-weight: 300; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; cursor: text; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; file2(1,1)&amp;nbsp; file2(1,2)&amp;nbsp; file2(1,3)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;file3&lt;SPAN style="text-align: left; color: #333333; text-transform: none; line-height: 1.7142; text-indent: 0px; letter-spacing: normal; font-family: inherit; font-size: 16px; font-variant: normal; font-weight: 300; text-decoration: none; word-spacing: 0px; display: inline !important; white-space: normal; cursor: text; orphans: 2; float: none; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; file3(1,1)&amp;nbsp; file3(1,2)&amp;nbsp; file3(1,3)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I hope you can get it, and thank you for your time.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2020 07:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-CSV-files-while-skipping-their-first-X/m-p/698856#M213761</guid>
      <dc:creator>SamVirgil96</dc:creator>
      <dc:date>2020-11-14T07:07:54Z</dc:date>
    </item>
  </channel>
</rss>

