<?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 : Programming Lesson 2: Accessing Data in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Programming-Lesson-2-Accessing-Data/m-p/681919#M24070</link>
    <description>&lt;P&gt;Re: Programming1 Lesson 2: Accessing Data proc contents data="&amp;amp;filepath/storm_summary.sas7bdat"; run; found the fix from 2018 but it didnt work, is there a new statement that works.&lt;/P&gt;</description>
    <pubDate>Sun, 06 Sep 2020 23:58:22 GMT</pubDate>
    <dc:creator>RioNAz</dc:creator>
    <dc:date>2020-09-06T23:58:22Z</dc:date>
    <item>
      <title>: Programming Lesson 2: Accessing Data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Programming-Lesson-2-Accessing-Data/m-p/681919#M24070</link>
      <description>&lt;P&gt;Re: Programming1 Lesson 2: Accessing Data proc contents data="&amp;amp;filepath/storm_summary.sas7bdat"; run; found the fix from 2018 but it didnt work, is there a new statement that works.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Sep 2020 23:58:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Programming-Lesson-2-Accessing-Data/m-p/681919#M24070</guid>
      <dc:creator>RioNAz</dc:creator>
      <dc:date>2020-09-06T23:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: : Programming Lesson 2: Accessing Data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Programming-Lesson-2-Accessing-Data/m-p/681923#M24071</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;I think the syntax model in the assignment shows data="&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;FILEPATH&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;/storm_summary.sas7bdat&lt;/FONT&gt;&lt;/STRONG&gt;" and, you need to go find your data folder under the Server Files and Folders pane (if you're using SAS Studio). and then right click on the data folder and choose Properties to find the correct full path to use. Typically, you either replace the word &lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;FILEPATH&lt;/STRONG&gt;&lt;/FONT&gt; with the full path location or if you are using SAS Enterprise Guide you use the special macro variable &amp;amp;PATH that is created for you by the setup program.&lt;BR /&gt;&lt;BR /&gt;In order to figure out the correct path, you first need to identify for us HOW you are using SAS -- SAS OnDemand for Academics, SAS University Edition, SAS Enterprise Guide, SAS on Windows. Then the method of identifying your data location should be easy from there.&lt;BR /&gt;&lt;BR /&gt;As I remember the Programming 1 course for the newest version of the class, you should have an &lt;STRONG&gt;EPG1V2&lt;/STRONG&gt; folder and the instructions show the word &lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;FILEPATH&lt;/STRONG&gt;&lt;/FONT&gt; as a place holder, 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-1599440706824.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49046i62791EF4BC617A84/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1599440706824.png" alt="Cynthia_sas_0-1599440706824.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;When you created the class data, you should have created a folder called &lt;STRONG&gt;EPG1V2&lt;/STRONG&gt; in SAS Studio. But that is only part of the path name. You need to use the FULL operating system path name if you are going to use the operating system method of referencing the file.&lt;BR /&gt;If code shows data="&lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;FILEPATH&lt;/FONT&gt;&lt;FONT color="#008000"&gt;/storm_summary.sas7bdat&lt;/FONT&gt;&lt;/STRONG&gt;" then you might have something like this:&lt;BR /&gt;** SAS University Edition;&lt;BR /&gt;proc contents data="&lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;/folders/myfolders/EPG1V2/data&lt;/FONT&gt;&lt;/STRONG&gt;/&lt;STRONG&gt;&lt;FONT color="#008000"&gt;storm_summary.sas7bdat&lt;/FONT&gt;&lt;/STRONG&gt;";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;** SAS OnDemand for Academics;&lt;BR /&gt;proc contents data="&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;/home/&amp;lt;userID&amp;gt;/EPG1V2/data&lt;/STRONG&gt;&lt;/FONT&gt;/&lt;FONT color="#008000"&gt;&lt;STRONG&gt;storm_summary.sas7bdat&lt;/STRONG&gt;&lt;/FONT&gt;";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;** SAS on Windows with a local install;&lt;BR /&gt;proc contents data="&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;c:\sas_class\EPG1V2\data&lt;/STRONG&gt;&lt;/FONT&gt;\&lt;STRONG&gt;&lt;FONT color="#008000"&gt;storm_summary.sas7bdat&lt;/FONT&gt;&lt;/STRONG&gt;";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;** Enterprise Guide -- &amp;amp;PATH is created automatically by the autoexec process flow;&lt;BR /&gt;proc contents data="&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;&amp;amp;path&lt;/STRONG&gt;&lt;/FONT&gt;/&lt;FONT color="#008000"&gt;&lt;STRONG&gt;storm_summary.sas7bdat&lt;/STRONG&gt;&lt;/FONT&gt;";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;The 2018 answer probably referred to a folder named &lt;STRONG&gt;EPG194&lt;/STRONG&gt;, which was the folder for the previous version of Programming 1. The newer version uses a class folder named &lt;STRONG&gt;EPG1V2&lt;/STRONG&gt;, as shown in the screen shot above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Later in this lesson, we will show you an alternate way to point to SAS files using a LIBNAME statement to point to the high level folder path. But in order to make the LIBNAME statement work, you still need to be able to find the correct path to your data folder.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 01:10:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Programming-Lesson-2-Accessing-Data/m-p/681923#M24071</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-09-07T01:10:31Z</dc:date>
    </item>
  </channel>
</rss>

