<?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 data from excel in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/640993#M9054</link>
    <description>&lt;P&gt;Your need to replace the literal text FILEPATH with the actual path. It needs to be the path on the machine (virtual or real) where SAS is running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Re-read&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;'s post more carefully.&amp;nbsp; She has explained everything you need to know to fix your problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Apr 2020 19:51:55 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-04-18T19:51:55Z</dc:date>
    <item>
      <title>Creating libname</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/639378#M9023</link>
      <description>&lt;PRE&gt;Hi,&lt;BR /&gt;I am new to sas studio. I was learning how to create libname and I was doing an &lt;BR /&gt;e-learning course. However, I am stuck with these codes which I obtained from the &lt;BR /&gt;course. At first, I use properties in Data and paste it in the filepath.&lt;BR /&gt;When I run the libname, it says STAT1 does not exist. I tried to create a libname &lt;BR /&gt;and still it does not work. I am stuck and I cannot carry on with the course.&lt;BR /&gt;Can you help please?&lt;BR /&gt;&lt;BR /&gt;%let homefolder=FILEPATH/myshortcuts/Myfolders/ECST142/data/STAT1;&lt;BR /&gt;&lt;BR /&gt;libname STAT1 "&amp;amp;homefolder";&lt;BR /&gt;&lt;BR /&gt;Vanessa&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 Apr 2020 23:04:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/639378#M9023</guid>
      <dc:creator>Vanessa2</dc:creator>
      <dc:date>2020-04-12T23:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating libname</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/639386#M9024</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; In the STAT1 course, you need to replace FILEPATH with YOUR path to the folder that you unzipped.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If you are using SAS University Edition in a virtual machine, typically you do NOT put the files in a "shortcuts" folder. We tell you to write the folder directly under your My Folders top node. In this case, the path would be something like:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;%let homefolder=/folders/myfolders/ECST142/data;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;libname STAT1 "&amp;amp;homefolder";&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;or else it would be something like this:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;%let homefolder=/folders/myfolders/ECST142/data;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;libname STAT1 "/folders/myfolders/ECST142/data";&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new, courier"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;(note that STAT1 programs usually expect to find the helper variable &amp;amp;homefolder defined as the path to the data folder)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note how the top folder path is /folders/myfolders. The fastest way to find the correct full path to use is to go to SAS Studio and find your ECST142/data folder. Right click on the folder name and choose Properties. When you do that, the Location field in the Properties window will show you the EXACT path that you need to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 01:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/639386#M9024</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-04-13T01:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: importing data from excel</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/640990#M9053</link>
      <description>I was trying to use proc import and use the codes:&lt;BR /&gt;proc import datafile="filepath/data/eu_sport_trade.xlsx"&lt;BR /&gt;DBMS=xlsx&lt;BR /&gt;out = eu_sport_trade&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;BR /&gt;but I have a message saying:&lt;BR /&gt;physical file does not exist&lt;BR /&gt;how can access this dataset&lt;BR /&gt;Vanessa&lt;BR /&gt;</description>
      <pubDate>Sat, 18 Apr 2020 18:57:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/640990#M9053</guid>
      <dc:creator>Vanessa2</dc:creator>
      <dc:date>2020-04-18T18:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: importing data from excel</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/640993#M9054</link>
      <description>&lt;P&gt;Your need to replace the literal text FILEPATH with the actual path. It needs to be the path on the machine (virtual or real) where SAS is running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Re-read&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;'s post more carefully.&amp;nbsp; She has explained everything you need to know to fix your problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Apr 2020 19:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/640993#M9054</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-18T19:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: importing data from excel</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/641021#M9055</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Your first question was about STAT1. Your second question seems to be about Programming 1. ANYTIME you see the string FILEPATH in code, we expect you to replace that string with YOUR location for the class data folder, You showed THIS code:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc import datafile="&lt;FONT color="#FF00FF"&gt;filepath&lt;/FONT&gt;&lt;FONT color="#008000"&gt;/data/eu_sport_trade.xlsx&lt;/FONT&gt;"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;DBMS=xlsx&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;out = eu_sport_trade&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;replace;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using SAS University Edition in a Virtual Machine and IF you did the data setup for the class correctly, we would expect you to replace "&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#FF00FF"&gt;filepath&lt;/FONT&gt;&lt;/STRONG&gt;" in the above code with this (first line only displayed):&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc import datafile="&lt;FONT color="#FF00FF"&gt;/folders/myfolders/EPG194&lt;/FONT&gt;&lt;FONT color="#008000"&gt;/data/eu_sport_trade.xlsx&lt;/FONT&gt;"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, if you are using SAS OnDemand for Academics on our cloud server and IF you did the data setup for the class correctly, we would expect you to replace "filepath" in the above code with this (first line only displayed):&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc import datafile="&lt;FONT color="#FF00FF"&gt;/home/&amp;lt;yourUserID&amp;gt;/EPG194&lt;/FONT&gt;&lt;FONT color="#008000"&gt;/data/eu_sport_trade.xlsx&lt;/FONT&gt;"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;One way to see the correct full path to use for the eu_sport_trade.xlsx file is to go to your Server Files and Folders pane in SAS Studio. Find your &lt;STRONG&gt;EPG194&lt;/STRONG&gt; folder and click the little triangle/arrow to expand the contents. Find your &lt;STRONG&gt;data&lt;/STRONG&gt; subfolder and click to expand the &lt;STRONG&gt;data&lt;/STRONG&gt; subfolder. In the folder you should see the eu_sport_trade.xlsx file -- just right-click on the file and choose Properties. In the popup window, you'll see a Location field. The full path you need is shown in this box. All you need to do is highlight the FULL path and do a CTRL+C to get the path and then do a CTRL+V between the quotation marks.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hope this helps,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Cynthia&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Apr 2020 23:50:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/641021#M9055</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-04-18T23:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: libname</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/641103#M9056</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;I have really hard to create the libname to obtain all the datasets for the folder&amp;nbsp;&lt;/P&gt;&lt;P&gt;EPG194. For this folder, there is no way, I could find the datasets. When I was working on the statistics module, I had these codes to create the SAS datasets. I could see the createdata.sas. The codes to create the macros are:&lt;/P&gt;&lt;PRE&gt;/* create macro variables to hold the names of the interval and */&lt;BR /&gt;/* categorical variables used in the demo and practice programs */&lt;BR /&gt;&lt;BR /&gt;%let interval=Gr_Liv_Area Basement_Area Garage_Area Deck_Porch_Area &lt;BR /&gt;         Lot_Area Age_Sold Bedroom_AbvGr Total_Bathroom;&lt;BR /&gt;&lt;BR /&gt;%let categorical=House_Style2 Overall_Qual2 Overall_Cond2 Fireplaces &lt;BR /&gt;         Season_Sold Garage_Type_2 Foundation_2 Heating_QC &lt;BR /&gt;         Masonry_Veneer Lot_Shape_2 Central_Air;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Vanessa&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2020 15:27:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/641103#M9056</guid>
      <dc:creator>Vanessa2</dc:creator>
      <dc:date>2020-04-19T15:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: libname</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/641123#M9057</link>
      <description>Hi:&lt;BR /&gt;  The instructions for making the data in Programming 1 are slightly different than the instructions for Statistics 1. But we do have instructions for ALL the methods of using SAS.&lt;BR /&gt;  How are you using SAS? Do you start up VirtualBox or VMWare Player first? Do you start up the OnDemand Control Center? From your previous posts, it seemed like you might be using SAS University Edition in a Virtual Machine using either VirtualBox or VMWare player. If that is the case, then you should have unzipped the zip file from Programming 1's instructions into your shared folder location. Please go back to Programming 1, to the Course Overview and Data Setup section of the course and revisit the setup instructions for SAS University Edition in a Virtual Machine. There's a zip file there that needs to be downloaded to your machine. Then the zip file needs to be unzipped and the contents put into your shared folder location in folder called EPG194. The data subfolder will be under the EPG194 main folder. The setup.sas file and the createdata.sas files ARE inside the zip archive for SAS University Edition.&lt;BR /&gt;&lt;BR /&gt;Here's a video that you can watch &lt;A href="https://youtu.be/OZniWlafFEk" target="_blank"&gt;https://youtu.be/OZniWlafFEk&lt;/A&gt; that shows exactly how the setup works in Programming 1 when you are using SAS University Edition in a Virtual Machine.&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Cynthia</description>
      <pubDate>Sun, 19 Apr 2020 17:36:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/641123#M9057</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-04-19T17:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: libname</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/641170#M9058</link>
      <description>Hi Cynthia,&lt;BR /&gt;&lt;BR /&gt;Still having difficulties.&lt;BR /&gt;&lt;BR /&gt;I cannot see the zip file from the programming 1's instructions in my&lt;BR /&gt;shared folder.&lt;BR /&gt;I don't know how to get back to the course overview and data set up section&lt;BR /&gt;of the course. The only thing I could get through are the explanation about&lt;BR /&gt;writing SAS codes in the connected e-learning programming 1. I could also&lt;BR /&gt;get access to the SAS studio.&lt;BR /&gt;Vanessa</description>
      <pubDate>Sun, 19 Apr 2020 22:00:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/641170#M9058</guid>
      <dc:creator>Vanessa2</dc:creator>
      <dc:date>2020-04-19T22:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: libname</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/641316#M9062</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;Please go to your My Training page (&lt;A href="https://support.sas.com/edu/viewmyelearn.html" target="_blank" rel="noopener"&gt;https://support.sas.com/edu/viewmyelearn.html&lt;/A&gt; ) and sign on to your SAS Profile, if prompted. Then click on Programming 1 in the list of e-learning classes.&lt;BR /&gt;&lt;BR /&gt;Once you are inside Programming 1, you should see a Table of Contents with the Course Overview and Data Setup lesson at the very top, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1587392507817.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38454i39A5B57612ED1F4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1587392507817.png" alt="Cynthia_sas_0-1587392507817.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;When you click on the lesson highlighted above, you will next see this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1587392573316.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38455i05CF716BDC1285B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1587392573316.png" alt="Cynthia_sas_1-1587392573316.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Watch and listen to the material in this lesson and then click on the last topic in the list and you will see THIS:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_2-1587392677282.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38456i207521CC4108EE11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_2-1587392677282.png" alt="Cynthia_sas_2-1587392677282.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When you click on the link for your method of using SAS, you should see this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_3-1587393011435.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38457i6E71C63A8C0AC771/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_3-1587393011435.png" alt="Cynthia_sas_3-1587393011435.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;click on the words "this zip file" in order to start the download of the zip file. Here's what the zip file looks like for SAS University Edition:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_4-1587393179232.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38458iAC2CAB42D1CEBE12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_4-1587393179232.png" alt="Cynthia_sas_4-1587393179232.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;There is a main/top folder called EPG194 and several sub-folders under that main folder. ALL of the zip file should be unzipped to your shared folder location (under SASUniversityEdition/myfolders on your system) if you are using SAS University Edition in a Virtual Machine.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;After you do the setup, then you can proceed with the rest of the work in the class.&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 14:34:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-libname/m-p/641316#M9062</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-04-20T14:34:41Z</dc:date>
    </item>
  </channel>
</rss>

