<?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 data from a single work sheet in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/768186#M30803</link>
    <description>How many variables are in the eu_sport_trade table?</description>
    <pubDate>Thu, 16 Sep 2021 20:22:56 GMT</pubDate>
    <dc:creator>Akhil123</dc:creator>
    <dc:date>2021-09-16T20:22:56Z</dc:date>
    <item>
      <title>Importing excel data from a single work sheet</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/651935#M22435</link>
      <description>&lt;P&gt;Hi, I am stuck on level 1 practise and can not figure out how to solve it. &amp;nbsp;This is the code that should be correct, but I still get the following errors. ( ERROR: Physical file does not exist, /pbr/biconfig/940/Lev1/SASApp/home/userid/EPG194/data//eu_sport_trade. ) and (ERROR: File WORK.EU_SPORT_TRADE.DATA does not exist. )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc import datafile="home/userid/EPG194/data/eu_sport_trade.xlsx"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;dbms=xlsx&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;out=eu_sport_trade&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;replace;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc contents data=eu_sport_trade;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2020 07:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/651935#M22435</guid>
      <dc:creator>potato</dc:creator>
      <dc:date>2020-05-30T07:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Importing excel data from a single work sheet</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/651936#M22436</link>
      <description>did you try to use the full path of the file like &lt;BR /&gt;&lt;BR /&gt;/pbr/biconfig/940/Lev1/SASApp/home/userid/EPG194/data//eu_sport_trade.xlsx</description>
      <pubDate>Sat, 30 May 2020 07:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/651936#M22436</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2020-05-30T07:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Importing excel data from a single work sheet</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/651938#M22437</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I tried the code and got the following errors again. &amp;nbsp;ERROR: Physical file does not exist, /pbr/biconfig/940/Lev1/SASApp/home/userid/EPG194/data///eu_sport_trade&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: File WORK.EU_SPORT_TRADE.DATA does not exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2020 07:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/651938#M22437</guid>
      <dc:creator>potato</dc:creator>
      <dc:date>2020-05-30T07:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Importing excel data from a single work sheet</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/651942#M22438</link>
      <description>&lt;P&gt;On UNIX, use&amp;nbsp;&lt;EM&gt;absolute&lt;/EM&gt; path names starting at the root directory. You missed to use a forward slash at the beginning of your file name:&lt;/P&gt;
&lt;PRE&gt;"/home/userid/EPG194/data/eu_sport_trade.xlsx"&lt;/PRE&gt;</description>
      <pubDate>Sat, 30 May 2020 08:14:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/651942#M22438</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-30T08:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Importing excel data from a single work sheet</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/702503#M25920</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the below code, whereby it gave me the same 2 errors as you upon initially running, but then I highlighted the whole code and clicked "format code", ran it again and it worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import&lt;BR /&gt;datafile="/home/u50224767/EPG194/activities/data/eu_sport_trade.xlsx"&lt;BR /&gt;dbms=xlsx out=eu_sport_trade replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc contents data=eu_sport_trade;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 14:07:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/702503#M25920</guid>
      <dc:creator>pjbyrne92</dc:creator>
      <dc:date>2020-11-30T14:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Importing excel data from a single work sheet</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/768186#M30803</link>
      <description>How many variables are in the eu_sport_trade table?</description>
      <pubDate>Thu, 16 Sep 2021 20:22:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/768186#M30803</guid>
      <dc:creator>Akhil123</dc:creator>
      <dc:date>2021-09-16T20:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Importing excel data from a single work sheet</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/768192#M30804</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I believe that you have the wrong path. If you are starting with the home folder, you need a leading slash also, you MUST put YOUR UserID into the path (not the string "userid":&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT size="5" color="#FF0000"&gt;/&lt;/FONT&gt;home/&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&amp;lt;yourUserID&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;/EPG194/data/eu_sport_trade.xlsx&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; So, if your UserID is &lt;FONT face="courier new,courier" color="#FF0000"&gt;&lt;STRONG&gt;u1234567&lt;/STRONG&gt;&lt;/FONT&gt;, and you have instructions to use the class folder &lt;FONT face="courier new,courier" color="#0000FF"&gt;&lt;STRONG&gt;EPG194&lt;/STRONG&gt;&lt;/FONT&gt;, then the path would be:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;/home/&lt;FONT color="#FF0000"&gt;u1234567&lt;/FONT&gt;/&lt;FONT color="#0000FF"&gt;EPG194&lt;/FONT&gt;/data/eu_sport_trade.xlsx&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Or, if your user id is &lt;FONT face="courier new,courier" color="#FF0000"&gt;&lt;STRONG&gt;u9876543 &lt;/STRONG&gt;&lt;/FONT&gt;and you are taking the most current version of the class with a folder of &lt;FONT face="courier new,courier" color="#0000FF"&gt;&lt;STRONG&gt;EPG1V2&lt;/STRONG&gt;&lt;/FONT&gt;, then the path would be:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;/home/&lt;FONT color="#FF0000"&gt;u9876543&lt;/FONT&gt;/&lt;FONT color="#0000FF"&gt;EPG1V2&lt;/FONT&gt;/data/eu_sport_trade.xlsx&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The bottom line is that there is a never-fail method for finding the correct path to use. Right-click on Files (Home) top node in the Server Files and Folders path and choose Properties. In the Location field on the Properties window, you'll see that full and correct path. Next click to see the Properties on your course &lt;STRONG&gt;data&lt;/STRONG&gt; subfolder and you'll see THAT full and correct path. Finally, expand the data subfolder and look for the XLSX file. Right click and choose Properties to see the full and correct path for the XLSX file. The nice thing about this method is that you can highlight the correct path in the Location field of the Properties window and just copy and paste the path into the code location where you need it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 20:50:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/768192#M30804</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-09-16T20:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Importing excel data from a single work sheet</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/850200#M37214</link>
      <description>&lt;P&gt;Great thanks for the solution. It helps me also!&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2022 14:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-excel-data-from-a-single-work-sheet/m-p/850200#M37214</guid>
      <dc:creator>Alexo2025</dc:creator>
      <dc:date>2022-12-17T14:09:16Z</dc:date>
    </item>
  </channel>
</rss>

