<?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: can't convert an excel file to a sas data set in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679536#M9359</link>
    <description>&lt;P&gt;Funny that SAS starts up at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use University Edition. But there, you have to place your Excel file in the shared folder, and use the internal path /folders/myfolders to correctly access it.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Aug 2020 15:40:56 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-08-26T15:40:56Z</dc:date>
    <item>
      <title>can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679336#M9352</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello there,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am a new user of SAS and now I have a big trouble with converting an excel file to a sas data set. I tried sas studio and 9.4, but not succeed either. For example, I created an excel by hand, called data.xlsx, located at desk.There are 2&amp;nbsp; worksheet in it, one&amp;nbsp; called tests.xlsx, like the following, and the other called family.xlsx.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Name&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;RestHR&lt;/TD&gt;&lt;TD&gt;MaxHR&lt;/TD&gt;&lt;TD&gt;RecHR&lt;/TD&gt;&lt;TD&gt;TimeMin&lt;/TD&gt;&lt;TD&gt;TimeSec&lt;/TD&gt;&lt;TD&gt;Tolerance&lt;/TD&gt;&lt;TD&gt;TestDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2458&lt;/TD&gt;&lt;TD&gt;Murray, W&lt;/TD&gt;&lt;TD&gt;72&lt;/TD&gt;&lt;TD&gt;185&lt;/TD&gt;&lt;TD&gt;128&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;38&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;8/25/2008&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2462&lt;/TD&gt;&lt;TD&gt;Almers, C&lt;/TD&gt;&lt;TD&gt;68&lt;/TD&gt;&lt;TD&gt;171&lt;/TD&gt;&lt;TD&gt;133&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;I&lt;/TD&gt;&lt;TD&gt;6/26/2008&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2501&lt;/TD&gt;&lt;TD&gt;Bonaventure, T&lt;/TD&gt;&lt;TD&gt;78&lt;/TD&gt;&lt;TD&gt;177&lt;/TD&gt;&lt;TD&gt;139&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;TD&gt;I&lt;/TD&gt;&lt;TD&gt;6/26/2008&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is my code with studio:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;libname results xlsx 'C:\Users\linsq\OneDrive\Desktop/data.xlsx';&lt;BR /&gt;data stress;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; set results.'tests$'n;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, log shows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NOTE: Libref RESULTS was successfully assigned as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: File RESULTS.'tests$'n.DATA does not exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With SAS9.4, log shows :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: The XLSX engine cannot be found.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: Error in the LIBNAME statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any suggestions ? Any comments? I really appreciate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 04:30:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679336#M9352</guid>
      <dc:creator>jkl123</dc:creator>
      <dc:date>2020-08-26T04:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679341#M9353</link>
      <description>&lt;P&gt;Use proc productstatus to verify that access to pcfiles is installed and, if it is not, use proc setinit to verify that you have licenced it.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 05:04:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679341#M9353</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-08-26T05:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679347#M9354</link>
      <description>&lt;P&gt;So your (local?) SAS 9.4 does not have ACCESS to PC Files licensed or installed.&lt;/P&gt;
&lt;P&gt;The use of SAS Studio points to a remote BI server, or University Edition. Which is it? BTW, both of those do not have access to your C: drive.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 05:36:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679347#M9354</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-26T05:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679515#M9355</link>
      <description>Hi, andreas_Ids, thank you.&lt;BR /&gt;&lt;BR /&gt;I tried your suggestion, and my log shows:&lt;BR /&gt;&lt;BR /&gt;For SAS/ACCESS Interface to PC Files ...&lt;BR /&gt;Custom version information: 9.4_M1&lt;BR /&gt;&lt;BR /&gt;does 9.4_M1 mean it cannot access to PC files? I also tried proc setinit;&lt;BR /&gt;yes, it's expired.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Aug 2020 15:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679515#M9355</guid>
      <dc:creator>jkl123</dc:creator>
      <dc:date>2020-08-26T15:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679522#M9356</link>
      <description>&lt;P&gt;Is only the the expiration date for ACCESS to PC Files in the past, and everything else in the future?&lt;/P&gt;
&lt;P&gt;This could be the result of temporary licensing for testing.&lt;/P&gt;
&lt;P&gt;Check with the people in your organization if that was an oversight; you will need an updated license, and while you (or your SAS admin) are at it, also get a current version (9.4 M7 at the moment) &amp;nbsp;and upgrade to that. M1 misses a lot of goodies that were added in the meantime.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 15:13:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679522#M9356</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-26T15:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679529#M9357</link>
      <description>&lt;P&gt;&lt;SPAN class="login-bold"&gt;Hello, Kurbremser,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;My studio is University edition. I moved my data.xlsx to C:\ and then modified my codes like the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;libname results xlsx 'C:\data.xlsx';&lt;/P&gt;&lt;P&gt;data stress;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; set results.'tests$'n;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;But the same issue happened. I am not sure whether this is what you mean or not. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562" target="_self"&gt;&lt;SPAN class="login-bold"&gt;KurtBremser&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 15:27:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679529#M9357</guid>
      <dc:creator>jkl123</dc:creator>
      <dc:date>2020-08-26T15:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679532#M9358</link>
      <description>Hi, KurtBremser ,&lt;BR /&gt;&lt;BR /&gt;everything expired. I installed sas software when I was in my former&lt;BR /&gt;organization, but I left there a couple of years ago. Recently I stayed at&lt;BR /&gt;home, thinking about learning it again. Is there any way that I can update&lt;BR /&gt;it privately? Thanks.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Aug 2020 15:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679532#M9358</guid>
      <dc:creator>jkl123</dc:creator>
      <dc:date>2020-08-26T15:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679536#M9359</link>
      <description>&lt;P&gt;Funny that SAS starts up at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use University Edition. But there, you have to place your Excel file in the shared folder, and use the internal path /folders/myfolders to correctly access it.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 15:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679536#M9359</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-26T15:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679537#M9360</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/320060"&gt;@jkl123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi, KurtBremser ,&lt;BR /&gt;&lt;BR /&gt;everything expired. I installed sas software when I was in my former&lt;BR /&gt;organization, but I left there a couple of years ago. Recently I stayed at&lt;BR /&gt;home, thinking about learning it again. Is there any way that I can update&lt;BR /&gt;it privately? Thanks.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can install the SAS/University Edition for use in learning SAS.&amp;nbsp; Note that it will install into a virtual machine that will have access to only one folder on your real machine.&amp;nbsp; So once you have it working to use it for this problem you will need to move the XLSX file into that folder on your real machine and reference it in the SAS code using the name that accesses that folder on the virtual machine.&amp;nbsp; So if you XLSX file is named myfile.xlsx then code to make a libref pointing to it and copy all of the sheets into work datasets would look like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib xlsx '/folders/myfolders/myfile.xlsx';
proc copy inlib=mylib outlib=work;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 15:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679537#M9360</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-08-26T15:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679541#M9361</link>
      <description>I uploaded data.xlsx to sas studio, and I did succeed with PROC IMPORT, but&lt;BR /&gt;still got trouble with the following.&lt;BR /&gt;&lt;BR /&gt;libname results xlsx '/folders/myfolders/data.xlsx';&lt;BR /&gt;data stress;&lt;BR /&gt;set results.'tests$'n;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;However, I modified the above codes a little bit, like the following:&lt;BR /&gt;&lt;BR /&gt;libname results xlsx '/folders/myfolders/data.xlsx';&lt;BR /&gt;data stress2;&lt;BR /&gt;set results.tests;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I am successful. It's a surprise. I thought when reading worksheets, I need&lt;BR /&gt;to use 'worksheet$'n.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Aug 2020 15:54:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679541#M9361</guid>
      <dc:creator>jkl123</dc:creator>
      <dc:date>2020-08-26T15:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679549#M9362</link>
      <description>Hi, Tom ,&lt;BR /&gt;&lt;BR /&gt;Thanks. I now understand what you are saying and I also tried your way. It&lt;BR /&gt;works good for those worksheets with variable names in the first row. But&lt;BR /&gt;for those sheets without variable names, this way converted my first&lt;BR /&gt;observation to variables. Any suggestions on this question? Thanks.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Aug 2020 16:29:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/679549#M9362</guid>
      <dc:creator>jkl123</dc:creator>
      <dc:date>2020-08-26T16:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/680027#M9364</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;If you are using SAS University Edition in a Virtual Machine, you cannot use a C drive location for your files. As part of the Virtual Machine setup process, you created a shared folder in the Virtual Machine management screens. You need to put your XLSX file in THAT location. The shared folder path on Windows should be something like:&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#FF00FF"&gt;c:\folder\subfolder\&lt;/FONT&gt;&lt;FONT color="#339966"&gt;SASUniversityEdition\myfolders&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; or&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;c:\&lt;/FONT&gt;&lt;FONT color="#339966"&gt;SASUniversityEdition\myfolders&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt; or&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#FF00FF"&gt;C:\users\xyzxyz\&lt;/FONT&gt;&lt;FONT color="#339966"&gt;SASUniversityEdition\myfolders&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;It doesn't matter what the high level part of the path is. The main folders should be as shown in green above. There should be a &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;SASUniversityEdition&lt;/STRONG&gt;&lt;/FONT&gt; folder on your system with a sub-folder called &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;myfolders&lt;/FONT&gt;&lt;/STRONG&gt;. THAT is the location you needed to define as your shared folder location. So, let's assume that you installed and defined THIS as your shared folder (less typing directly under C:) -- and put your Excel file there:&lt;BR /&gt;&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;c:\&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier" color="#339966"&gt;&lt;STRONG&gt;SASUniversityEdition\myfolders&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;\myworkbook.xlsx&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Then, the reference you would use in SAS Studio would be:&lt;BR /&gt;l&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ibname xlwkbk xlsx '&lt;FONT color="#339966"&gt;/folders/myfolders&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;/myworkbook.xlsx&lt;/FONT&gt;';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;You must use the &lt;FONT face="courier new,courier" color="#339966"&gt;&lt;STRONG&gt;/folders/myfolders&lt;/STRONG&gt;&lt;/FONT&gt; reference in University Edition because the Virtual Machine is delivered on a Linux platform and you can't use Windows folder names with SAS in the Virtual Machine. You must use the Linux/Unix folder name of the shared folder location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You should be able to see the XLSX file in your SAS Studio navigation for &lt;STRONG&gt;Server Files and Folders&lt;/STRONG&gt; on the left side of the Studio window. If you don't see your XLSX file in Server Files and Folders, then you may have put it into a subfolder or you may need to move it to that location. When you can see the XLSX file in Server Files and Folders, you can right-click on it and choose Properties. The Location field in the Properties window will show you the EXACT path to use in your LIBNAME statement. Then you can continue on from there.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 16:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/680027#M9364</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-08-28T16:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/680035#M9365</link>
      <description>Hello, Cynthia,&lt;BR /&gt;&lt;BR /&gt;Thank you for your explanation. I am now clear. I tried the code in the&lt;BR /&gt;following:&lt;BR /&gt;&lt;BR /&gt;libname carinfo xlsx '/folders/myfolders/auto.xlsx';&lt;BR /&gt;data car;&lt;BR /&gt;set carinfo.'auto$'n;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;But the log shows&lt;BR /&gt;ERROR: Couldn't find range or sheet in spreadsheet&lt;BR /&gt;ERROR: File CARINFO.'auto$'n.DATA does not exist.&lt;BR /&gt;&lt;BR /&gt;But when I used&lt;BR /&gt;set carinfo.auto;&lt;BR /&gt;removing '$'n, this program runs correctly. Obviously it contradicts what&lt;BR /&gt;I learned from books. Any explanation on this issue? Thanks.&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Aug 2020 14:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/680035#M9365</guid>
      <dc:creator>jkl123</dc:creator>
      <dc:date>2020-08-28T14:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/680037#M9366</link>
      <description>&lt;P&gt;You need to include an actual range, or at least the upper left cell of the range.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1;
  set x.sheet1;
run;

data test2;
  set x.'sheet1$A1:'n;
run;

proc compare data=test1 compare=test2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 15:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/680037#M9366</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-08-28T15:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/680044#M9367</link>
      <description>Hi, Tom,&lt;BR /&gt;&lt;BR /&gt;Thank you so much. Now I am fully clear at this problem. I really&lt;BR /&gt;appreciate everyone's help. Thanks again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Aug 2020 15:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/680044#M9367</guid>
      <dc:creator>jkl123</dc:creator>
      <dc:date>2020-08-28T15:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/680216#M9370</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;Different engines required different reference methods for worksheets. The named literal method that you originally tried is NOT needed with the XLSX engine, but was used with other engines. Once you issue your LIBNAME statement, like this:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;libname carinfo xlsx '/folders/myfolders/auto.xlsx';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;You can always find out the correct sheet names to use by doing this:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc contents data=carinfo._all_ nods;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;title 'What are sheet names';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;title;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Use the name form that you see in the list of tables in the PROC CONTENTS output. My guess is that if you run PROC CONTENTS on your workbook, you will see AUTO listed as a table without the " &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;'n&lt;/STRONG&gt;&lt;/FONT&gt;" named literal form.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 29 Aug 2020 15:57:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/680216#M9370</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-08-29T15:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: can't convert an excel file to a sas data set</title>
      <link>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/680223#M9371</link>
      <description>Hello, Cynthia,&lt;BR /&gt;&lt;BR /&gt;Yes, you are correct. I tried and the spreadsheet name just showed up.&lt;BR /&gt;Thanks a million.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 29 Aug 2020 16:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/can-t-convert-an-excel-file-to-a-sas-data-set/m-p/680223#M9371</guid>
      <dc:creator>jkl123</dc:creator>
      <dc:date>2020-08-29T16:57:51Z</dc:date>
    </item>
  </channel>
</rss>

