<?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 file which has multiple format in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-multiple-file-which-has-multiple-format/m-p/883256#M39205</link>
    <description>&lt;P&gt;Writing such a macro would be more work than importing the files "manually". And I would not trust the results, as you would have to use PROC IMPORT and rely on its guessing.&lt;/P&gt;
&lt;P&gt;Concentrate on getting the Excel files imported correctly, which is usually the biggest problem. To get solid and consistent results, save the spreadsheets as csv files and read these with DATA steps.&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jul 2023 16:03:07 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-07-02T16:03:07Z</dc:date>
    <item>
      <title>How to import multiple file which has multiple format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-multiple-file-which-has-multiple-format/m-p/883253#M39204</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to import multiple files from a location. Each files are having different format(xlsx,xls,csv,txt). I need to import all the files into sas. How to import all file which has different format in a location in a single go.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My requirement is like below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Path: &lt;A href="https://communities.sas.com/files" target="_blank"&gt;https://communities.sas.com/files&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;For instance, In the above path, i am having multiple files.&lt;/P&gt;
&lt;P&gt;All_Files.zip (It contains 4 files PY_payment.xlsx , PY_sales.xls , PY_transaction.txt , PY_stores.csv)&lt;/P&gt;
&lt;P&gt;payment.xlsx&lt;/P&gt;
&lt;P&gt;sales.xls&lt;/P&gt;
&lt;P&gt;transaction.txt&lt;/P&gt;
&lt;P&gt;stores.csv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to import all this files into SAS. Can any one please suggest any macro or any method to import all files without doing any manual work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 15:33:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-import-multiple-file-which-has-multiple-format/m-p/883253#M39204</guid>
      <dc:creator>_el_doredo</dc:creator>
      <dc:date>2023-07-02T15:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple file which has multiple format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-multiple-file-which-has-multiple-format/m-p/883256#M39205</link>
      <description>&lt;P&gt;Writing such a macro would be more work than importing the files "manually". And I would not trust the results, as you would have to use PROC IMPORT and rely on its guessing.&lt;/P&gt;
&lt;P&gt;Concentrate on getting the Excel files imported correctly, which is usually the biggest problem. To get solid and consistent results, save the spreadsheets as csv files and read these with DATA steps.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 16:03:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-import-multiple-file-which-has-multiple-format/m-p/883256#M39205</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-07-02T16:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple file which has multiple format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-multiple-file-which-has-multiple-format/m-p/883257#M39206</link>
      <description>&lt;P&gt;You could write a macro that reads the names of all the files in a folder (there are plenty of threads in the SAS Communities on how to do that), then if it is a .xlsx file, the macro imports it one way, if it is a .txt file then the macro imports it another way, and so on.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 16:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-import-multiple-file-which-has-multiple-format/m-p/883257#M39206</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-02T16:03:35Z</dc:date>
    </item>
  </channel>
</rss>

