<?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: Importing Excel file with libname, get message &amp;quot;Multiple SAS files with this name exist&amp;amp in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-with-libname-get-message-quot-Multiple-SAS/m-p/714847#M220744</link>
    <description>Thanks so much! Looks like just getting them into the work folder, even using a data step was all it needed. I hadn't used the code in a while and got an error message when I first ran it and I think trying to open the file in the library just dropped me down the rabbit hole.&lt;BR /&gt;&lt;BR /&gt;I saved the files as Excel after a god-awful data wrangle so they'd be there as I need them without having to go through it all again. To tell you the truth, importing .XPT files has never worked for me. I end up having to just open them by double clicking on them. The code I've found on this site always gives me errors and I give up and just start double clicking.</description>
    <pubDate>Thu, 28 Jan 2021 00:22:48 GMT</pubDate>
    <dc:creator>mdwilson</dc:creator>
    <dc:date>2021-01-28T00:22:48Z</dc:date>
    <item>
      <title>Importing Excel file with libname, get message "Multiple SAS files with this name exist"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-with-libname-get-message-quot-Multiple-SAS/m-p/714845#M220742</link>
      <description>&lt;P&gt;I've been importing Excel files using the libname statement for years with no issue. Suddenly today, the resulting file is empty and I get a pop up window that says "Multiple SAS files with this name exist" and then offers to open one of them. This file is then empty. I've gone back to several code files that all worked fine just a week ago and none of them work today. Here's the code:&lt;BR /&gt;&lt;BR /&gt;libname HEI78 xlsx "H:\MyFolder\NHANES\HEI2010_NHANES0708.xlsx";&lt;BR /&gt;proc datasets lib=HEI78 details; run; quit;&lt;BR /&gt;&lt;BR /&gt;Here's the log:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1&lt;BR /&gt;2 libname HEI78 xlsx "H:\MyFolder\NHANES\HEI2010_NHANES0708.xlsx";&lt;BR /&gt;NOTE: Libref HEI78 was successfully assigned as follows:&lt;BR /&gt;Engine: XLSX&lt;BR /&gt;Physical Name: H:\MyFolder\NHANES\HEI2010_NHANES0708.xlsx&lt;BR /&gt;3&lt;BR /&gt;4 proc datasets lib=HEI78 details;&lt;BR /&gt;NOTE: Writing HTML Body file: sashtml.htm&lt;BR /&gt;5 run;&lt;/P&gt;&lt;P&gt;6 quit;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE DATASETS used (Total process time):&lt;BR /&gt;real time 9.56 seconds&lt;BR /&gt;cpu time 1.15 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated. I'm pretty much just sitting here whimpering.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 23:41:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-with-libname-get-message-quot-Multiple-SAS/m-p/714845#M220742</guid>
      <dc:creator>mdwilson</dc:creator>
      <dc:date>2021-01-27T23:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel file with libname, get message "Multiple SAS files with this name exist&amp;quo</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-with-libname-get-message-quot-Multiple-SAS/m-p/714846#M220743</link>
      <description>&lt;P&gt;Are any of the TABS in the spreadsheet named the same IF spaces or special characters were replaced with underscore? Such as "Tab&amp;amp;1" and "Tab 1"? The import might be replacing the &amp;amp; and space with _ generating duplicates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or run proc copy to make copies of the data set in another library and see what the log shows.&lt;/P&gt;
&lt;P&gt;Something like&lt;BR /&gt;Proc copy in=HEI78 out=work noclone;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I were using data from NHANES I would most likely use the XPT transport files if downloading from CDC.GOV if at all possible, partially just to avoid all of the problems XLSX files seem to introduce into every project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 23:59:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-with-libname-get-message-quot-Multiple-SAS/m-p/714846#M220743</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-27T23:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel file with libname, get message "Multiple SAS files with this name exist&amp;amp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-with-libname-get-message-quot-Multiple-SAS/m-p/714847#M220744</link>
      <description>Thanks so much! Looks like just getting them into the work folder, even using a data step was all it needed. I hadn't used the code in a while and got an error message when I first ran it and I think trying to open the file in the library just dropped me down the rabbit hole.&lt;BR /&gt;&lt;BR /&gt;I saved the files as Excel after a god-awful data wrangle so they'd be there as I need them without having to go through it all again. To tell you the truth, importing .XPT files has never worked for me. I end up having to just open them by double clicking on them. The code I've found on this site always gives me errors and I give up and just start double clicking.</description>
      <pubDate>Thu, 28 Jan 2021 00:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-file-with-libname-get-message-quot-Multiple-SAS/m-p/714847#M220744</guid>
      <dc:creator>mdwilson</dc:creator>
      <dc:date>2021-01-28T00:22:48Z</dc:date>
    </item>
  </channel>
</rss>

