<?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: Proc Contents Basic Question on Path in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/719598#M222839</link>
    <description>&lt;P&gt;Yeah Cythina, awesome information.&amp;nbsp; Also in Studio you can click on the file and select properties to get the filepath.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 11:12:05 GMT</pubDate>
    <dc:creator>rhodesc2801</dc:creator>
    <dc:date>2021-02-16T11:12:05Z</dc:date>
    <item>
      <title>Proc Contents Basic Question on Path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/566286#M159117</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to work through some very basic things in SAS using an online course that SAS offers (SAS Programming Essentials 1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you see anything obviously wrong with this procedure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;contents&lt;/STRONG&gt; data="&amp;amp;path/storm_summary.sas7dbat";&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&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;&lt;P&gt;These are the instructions that I was given in the course that I am trying to follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Open a new program window and perform the following tasks:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Write a PROC CONTENTS step to generate a report of the&amp;nbsp;&lt;STRONG&gt;storm_summary.sas7bdat&lt;/STRONG&gt;&amp;nbsp;table.&lt;/LI&gt;&lt;UL&gt;&lt;LI&gt;SAS Studio: Specify the path to your&amp;nbsp;&lt;STRONG&gt;EPG194/data&lt;/STRONG&gt;&amp;nbsp;folder and the full name of the table.&lt;/LI&gt;&lt;LI&gt;Enterprise Guide: Specify&amp;nbsp;&lt;STRONG&gt;&amp;amp;path&lt;/STRONG&gt;&amp;nbsp;and the full name of the table.&lt;/LI&gt;&lt;/UL&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc contents data="FILEPATH/storm_summary.sas7bdat";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 20:45:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/566286#M159117</guid>
      <dc:creator>CP3X</dc:creator>
      <dc:date>2019-06-14T20:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents Basic Question on Path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/566289#M159119</link>
      <description>&lt;P&gt;What is the assigned value of the macro variable PATH?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you connecting to a server? The path would&amp;nbsp;likely execute&amp;nbsp;from the server and likely can't reference your hard drive if that is the location indicated by Path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does your LOG show?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 20:54:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/566289#M159119</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-14T20:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents Basic Question on Path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/566290#M159120</link>
      <description>&lt;P&gt;What is the assigned value of the macro variable PATH?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you connecting to a server? The path would&amp;nbsp;likely execute&amp;nbsp;from the server and likely can't reference your hard drive if that is the location indicated by Path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does your LOG show?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 20:54:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/566290#M159120</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-14T20:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents Basic Question on Path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/566295#M159123</link>
      <description>Are you using SAS EG or Studio? Online (SAS academics on Demand or UE).&lt;BR /&gt;&lt;BR /&gt;Each will have a slightly different path.</description>
      <pubDate>Fri, 14 Jun 2019 21:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/566295#M159123</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-14T21:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents Basic Question on Path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/566365#M159160</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;Reeza is correct. Every method of using SAS has different instructions for making the data. And every method of using SAS has a slightly different path location for the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using Enterprise Guide, we have specific instructions for you to make a process flow called AUTOEXEC because that runs EVERY time you open the project and creates the data in WORK. We make the data in WORK on EG because frequently EG folks have issues finding a write access location if they are running SAS on a server. In this case &amp;amp;PATH is created by the programs in the AUTOEXEC process flow. So you must use the instructions to make the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are NOT using Enterprise Guide, then you either need a %LET statement or you need to just use the fully qualified path, based on your location for the Programming 1 data when you followed the instructions. In the instructions for making the data, we show you how to right click in SAS Studio to find the correct name for the path. If you are using SAS Studio, this should be very easy to do. If you are using SAS on Windows, this is also possible to do with just a few more keystrokes. With EG, it is easiest of all because we create &amp;amp;PATH for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; However, specifically in regard to storm_summary data and the PROC CONTENTS practice. Assuming you followed the instructions and made an EPG194 folder with the subfolders inside of it, there are examples below for every method of using SAS (except for the mainframe) for the storm_summary activity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;1) Full path method&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;SAS University Edition&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc contents data="/folders/myfolders/EPG194/data/storm_summary.sas7bdat";&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS OnDemand for Academics&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc contents data="/home/&amp;lt;yourUserID&amp;gt;/EPG194/data/storm_summary.sas7bdat";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Enterprise Guide&lt;BR /&gt;-- &lt;U&gt;&lt;STRONG&gt;MUST&lt;/STRONG&gt;&lt;/U&gt; run AUTOEXEC so that &amp;amp;PATH is created, then: &lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc contents data="&amp;amp;path/storm_summary.sas7bdat";&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS On Windows using Display Manager&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc contents data="C:\SAS_Class\EPG194\data\storm_summary.sas7bdat";&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS On Unix using X-Windows and Display Manager type Window&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc contents data="/usr/bin/xxxyyy/EPG194/data/storm_summary.sas7bdat";&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;2) Use &amp;amp;PATH method&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;SAS University Edition&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;%let path=/folders/myfolders/EPG194/data;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc contents data="&amp;amp;path/storm_summary.sas7bdat";&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS OnDemand for Academics&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;%let path=/home/&amp;lt;yourUserID&amp;gt;/EPG194/data;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc contents data="&amp;amp;path/storm_summary.sas7bdat";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Enterprise Guide&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;%let path=%sysfunc(pathname(WORK)); &amp;lt;-- this code is used in the AUTOEXEC programs&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc contents data="&amp;amp;path/storm_summary.sas7bdat";&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS On Windows using Display Manager&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;%let path=C:\SAS_Class\EPG194\data;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc contents data="&amp;amp;path/storm_summary.sas7bdat";&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS On Unix using X-Windows and Display Manager type Window&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;%let path=/usr/bin/xxxyyy/EPG194/data;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc contents data="&amp;amp;path/storm_summary.sas7bdat";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. Later in Programming 1, we will show you the LIBNAME statement and an even easier way to reference a SAS data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 00:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/566365#M159160</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-06-19T00:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents Basic Question on Path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/566969#M159406</link>
      <description>&lt;P&gt;Thank you all for your quick responses. They helped clarify possible issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then It turns out that this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;contents&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;data="&amp;amp;path/storm_summary.sas7dbat";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;needed to be this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;contents&lt;/STRONG&gt;&amp;nbsp;data="&amp;amp;path/storm_summary.sas7bdat";&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 17:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/566969#M159406</guid>
      <dc:creator>CP3X</dc:creator>
      <dc:date>2019-06-18T17:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents Basic Question on Path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/567098#M159429</link>
      <description>So sorry, that was my bad. I'll correct the earlier post.&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 19 Jun 2019 00:02:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/567098#M159429</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-06-19T00:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents Basic Question on Path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/719598#M222839</link>
      <description>&lt;P&gt;Yeah Cythina, awesome information.&amp;nbsp; Also in Studio you can click on the file and select properties to get the filepath.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 11:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Contents-Basic-Question-on-Path/m-p/719598#M222839</guid>
      <dc:creator>rhodesc2801</dc:creator>
      <dc:date>2021-02-16T11:12:05Z</dc:date>
    </item>
  </channel>
</rss>

