<?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 a Microsoft Excel Worksheet (.xlsx) dataset into SAS 9.4 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897272#M354550</link>
    <description>&lt;P&gt;And use the XLSX engine and the complete filename with the .xlsx extension.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 20:37:42 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-10-04T20:37:42Z</dc:date>
    <item>
      <title>Importing a Microsoft Excel Worksheet (.xlsx) dataset into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897262#M354542</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the following code to import a Microsoft Excel Worksheet (.xls) dataset into SAS 9.4:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;proc import out=Sleep&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;datafile="H:\NIAGEN Clinical Trial\Fellowship Project\Datasets\SAS Programs for Data Analysis"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DBMS=EXCEL REPLACE;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RANGE="Sheet1$";&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;GETNAMES=YES;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MIXED=YES;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SCANTEXT=YES;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;USEDATE=YES;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SCANTIME=YES;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I keep getting this error message in the Log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;ERROR: Unable to open file H:\NIAGEN Clinical Trial\Fellowship Project\Datasets\SAS Programs&lt;BR /&gt;for Data Analysis.XLS. It does not exist or it is already opened exclusively by&lt;BR /&gt;another user, or you need permission to view its data.&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have the file open when I'm running this code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance for some advice!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 20:02:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897262#M354542</guid>
      <dc:creator>lgutie1808</dc:creator>
      <dc:date>2023-10-04T20:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a Microsoft Excel Worksheet (.xlsx) dataset into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897264#M354544</link>
      <description>You're running SAS 9.4 on your local computer?&lt;BR /&gt;&lt;BR /&gt;If you navigate to the path using the file explorer you can see the file?</description>
      <pubDate>Wed, 04 Oct 2023 20:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897264#M354544</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-10-04T20:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a Microsoft Excel Worksheet (.xlsx) dataset into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897268#M354546</link>
      <description>&lt;P&gt;I'm getting access to the software in my local computer through VPN and the use of a remote desktop. H: is my workplace drive.&lt;/P&gt;&lt;P&gt;Yes! I can see the file when I n&lt;SPAN&gt;avigate to the path using the file explorer.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 20:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897268#M354546</guid>
      <dc:creator>lgutie1808</dc:creator>
      <dc:date>2023-10-04T20:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a Microsoft Excel Worksheet (.xlsx) dataset into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897269#M354547</link>
      <description>What is the name of the Excel file?&lt;BR /&gt;SAS programs for data analysis seems like a folder name not an Excel file name but I've seen worse....</description>
      <pubDate>Wed, 04 Oct 2023 20:30:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897269#M354547</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-10-04T20:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a Microsoft Excel Worksheet (.xlsx) dataset into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897270#M354548</link>
      <description>&lt;P&gt;The same network drive has to be mounted as H: on the SAS server for this to work.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 20:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897270#M354548</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-10-04T20:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a Microsoft Excel Worksheet (.xlsx) dataset into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897271#M354549</link>
      <description>&lt;P&gt;Thanks for noting that!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried this code adding the name of the excel file and it worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile = 'H:\NIAGEN Clinical Trial\Fellowship Project\Datasets\SAS Programs for Data Analysis\COVID_Niagen_Sleep_SAS_1.0.xlsx'&lt;BR /&gt;out = COVID.Sleep&lt;BR /&gt;dbms = xlsx&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 20:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897271#M354549</guid>
      <dc:creator>lgutie1808</dc:creator>
      <dc:date>2023-10-04T20:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a Microsoft Excel Worksheet (.xlsx) dataset into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897272#M354550</link>
      <description>&lt;P&gt;And use the XLSX engine and the complete filename with the .xlsx extension.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 20:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897272#M354550</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-10-04T20:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a Microsoft Excel Worksheet (.xlsx) dataset into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897273#M354551</link>
      <description>&lt;P&gt;Thanks for both comments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've added the name of the excel file and it worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The successful code is provided below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile = 'H:\NIAGEN Clinical Trial\Fellowship Project\Datasets\SAS Programs for Data Analysis\COVID_Niagen_Sleep_SAS_1.0.xlsx'&lt;BR /&gt;out = COVID.Sleep&lt;BR /&gt;dbms = xlsx&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 20:39:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-a-Microsoft-Excel-Worksheet-xlsx-dataset-into-SAS-9-4/m-p/897273#M354551</guid>
      <dc:creator>lgutie1808</dc:creator>
      <dc:date>2023-10-04T20:39:27Z</dc:date>
    </item>
  </channel>
</rss>

