<?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 CSV to sas data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Import-CSV-to-sas-data/m-p/414108#M67491</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to import many CSV files into a SAS data.&lt;/P&gt;&lt;P&gt;All the CSV has the same structure but different names:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/test/Inventario&lt;STRONG&gt;201701&lt;/STRONG&gt;cons.csv&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/test/&lt;/SPAN&gt;/Inventario&lt;STRONG&gt;201702&lt;/STRONG&gt;cons.csv&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/test/&lt;/SPAN&gt;Inventario&lt;STRONG&gt;201703&lt;/STRONG&gt;cons.csv&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;So, I need to import the files depending the date (month) when I started my&amp;nbsp;study. If my&amp;nbsp;started month was 201701 (JAN-17), I will need to take +6&amp;nbsp;CSV files from JAN-17, so I need 201701-201702-.......-201706, but If I started on 201703, I will need 201703-....-201708 and so on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 16 Nov 2017 19:51:37 GMT</pubDate>
    <dc:creator>rojomauri</dc:creator>
    <dc:date>2017-11-16T19:51:37Z</dc:date>
    <item>
      <title>Import CSV to sas data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Import-CSV-to-sas-data/m-p/414108#M67491</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to import many CSV files into a SAS data.&lt;/P&gt;&lt;P&gt;All the CSV has the same structure but different names:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/test/Inventario&lt;STRONG&gt;201701&lt;/STRONG&gt;cons.csv&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/test/&lt;/SPAN&gt;/Inventario&lt;STRONG&gt;201702&lt;/STRONG&gt;cons.csv&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/test/&lt;/SPAN&gt;Inventario&lt;STRONG&gt;201703&lt;/STRONG&gt;cons.csv&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;So, I need to import the files depending the date (month) when I started my&amp;nbsp;study. If my&amp;nbsp;started month was 201701 (JAN-17), I will need to take +6&amp;nbsp;CSV files from JAN-17, so I need 201701-201702-.......-201706, but If I started on 201703, I will need 201703-....-201708 and so on&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 19:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Import-CSV-to-sas-data/m-p/414108#M67491</guid>
      <dc:creator>rojomauri</dc:creator>
      <dc:date>2017-11-16T19:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV to sas data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Import-CSV-to-sas-data/m-p/414116#M67492</link>
      <description>&lt;P&gt;If they're all in one folder, you can use a wildcard approach instead.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you can read all at once, assuming you want all of the tables stacked together.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a write up on how to do that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need further help, you should include your code, the log and description of what issues you're having.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need instructions on how to import a CSV file see here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://video.sas.com/detail/videos/sas-analytics-u/video/4573016758001/creating-a-sas-table-from-a-csv-file?autoStart=true" target="_blank"&gt;http://video.sas.com/detail/videos/sas-analytics-u/video/4573016758001/creating-a-sas-table-from-a-csv-file?autoStart=true&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/178053"&gt;@rojomauri&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I need to import many CSV files into a SAS data.&lt;/P&gt;
&lt;P&gt;All the CSV has the same structure but different names:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/test/Inventario&lt;STRONG&gt;201701&lt;/STRONG&gt;cons.csv&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/test/&lt;/SPAN&gt;/Inventario&lt;STRONG&gt;201702&lt;/STRONG&gt;cons.csv&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/test/&lt;/SPAN&gt;Inventario&lt;STRONG&gt;201703&lt;/STRONG&gt;cons.csv&lt;/P&gt;
&lt;P&gt;.......&lt;/P&gt;
&lt;P&gt;So, I need to import the files depending the date (month) when I started my&amp;nbsp;study. If my&amp;nbsp;started month was 201701 (JAN-17), I will need to take +6&amp;nbsp;CSV files from JAN-17, so I need 201701-201702-.......-201706, but If I started on 201703, I will need 201703-....-201708 and so on&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 20:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Import-CSV-to-sas-data/m-p/414116#M67492</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-16T20:24:03Z</dc:date>
    </item>
  </channel>
</rss>

