<?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 and Libname in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834589#M1209</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-21 at 3.03.23 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75466iCB8284B5AE2AB541/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-09-21 at 3.03.23 PM.png" alt="Screen Shot 2022-09-21 at 3.03.23 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I get it now, but it still does not work. I don't know what I am doing wrong.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2022 22:03:57 GMT</pubDate>
    <dc:creator>Sassy_lady</dc:creator>
    <dc:date>2022-09-21T22:03:57Z</dc:date>
    <item>
      <title>Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834553#M1198</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-21 at 1.46.06 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75446i7E7A71F4A7C2C1E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-09-21 at 1.46.06 PM.png" alt="Screen Shot 2022-09-21 at 1.46.06 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having difficulty moving data for class_birthdate.sas7bdat in the data folder to a newly created folder. I am taking the SAS programming 1 and trying to practice this function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sometimes I have difficulty creating a libname too. For example, I tried writing libname MYWORK "EPG1V2/data/class_birthdate.sas7bdat";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 20:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834553#M1198</guid>
      <dc:creator>Sassy_lady</dc:creator>
      <dc:date>2022-09-21T20:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834554#M1199</link>
      <description>&lt;P&gt;In SAS, you refer to SAS data set names without the .SAS7BDAT on the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 20:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834554#M1199</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-21T20:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834555#M1200</link>
      <description>Thank you, but now I receive an error message saying that "ERROR: File MYWORK.CLASS_BIRTHDAT.DATA does not exist."&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Sep 2022 21:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834555#M1200</guid>
      <dc:creator>Sassy_lady</dc:creator>
      <dc:date>2022-09-21T21:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834557#M1202</link>
      <description>&lt;P&gt;Whenever you get an ERROR, you should show us the log (&lt;FONT color="#FF0000"&gt;all&lt;/FONT&gt; of the log for the PROC or DATA step that has an error, not selected parts of it, &lt;FONT color="#FF0000"&gt;all&lt;/FONT&gt; of the log for that PROC or DATA step). Please also copy the log as text (not screen capture) and paste it into the window that appears when you click on the &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_0-1663012019648.png" style="width: 859px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75161i0E71B1489A6C9839/image-size/large?v=v2&amp;amp;px=999" role="button" title="PaigeMiller_0-1663012019648.png" alt="PaigeMiller_0-1663012019648.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 21:02:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834557#M1202</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-21T21:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834562#M1203</link>
      <description>&lt;P&gt;Two things.&lt;/P&gt;
&lt;P&gt;1) A libname points to a DIRECTORY (what the SAS/Studio user interface calls a "folder").&amp;nbsp; You are attempting to point to an individual FILE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) You need specify the full name of the directory (also called a full path).&amp;nbsp; Otherwise the operating system will consider the name as being RELATIVE to its current working directory.&amp;nbsp; If you are running SAS via SAS/Studio or Enterprise Guide or some other front end tool then you will not normally have any control over what the default current directory will be.&amp;nbsp; And you most likely will not have write access to create any files under that directory.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On Unix (which where SAS is running for most SAS/Studio users) a full directory name starts with the root node which is indicated by a leading slash ( / ).&amp;nbsp; You can also usually start the name (path) with the ~ character and that will point to your personal home directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So try a path more like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname MYWORK "~/EPG1V2/data/";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now if you want read or write a dataset named CLASS_BIRTHDATE from that directory you can use the two level name of:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;mywork.class_birthdate&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In your SAS code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you already have that class_birthdate.sas7bdat file in the data subdirectory of the EPG1V2 subdirectory of your home directory then you could check its contents by running this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=mywork.class_birthdate;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Sep 2022 21:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834562#M1203</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-09-21T21:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834584#M1205</link>
      <description>&lt;P&gt;Sorry I clicked quick reply instead a full reply so I could not send a screen shoot before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm taking the live programming class and these are some screen shots from that class and my SAS studio log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-21 at 2.20.31 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75458i0B4D85581A382AE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-09-21 at 2.20.31 PM.png" alt="Screen Shot 2022-09-21 at 2.20.31 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-21 at 2.20.45 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75459iC7D72FA3B448D6BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-09-21 at 2.20.45 PM.png" alt="Screen Shot 2022-09-21 at 2.20.45 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-21 at 2.21.46 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75460i7F8F42D98B437BE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-09-21 at 2.21.46 PM.png" alt="Screen Shot 2022-09-21 at 2.21.46 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-21 at 2.22.49 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75461iF77537A60A4B5AE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-09-21 at 2.22.49 PM.png" alt="Screen Shot 2022-09-21 at 2.22.49 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-21 at 2.42.03 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75462i48D38DD9AFF1934C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-09-21 at 2.42.03 PM.png" alt="Screen Shot 2022-09-21 at 2.42.03 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-21 at 2.42.13 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75463i73FF86002AAC6396/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-09-21 at 2.42.13 PM.png" alt="Screen Shot 2022-09-21 at 2.42.13 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-21 at 1.46.06 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75464i92F7A84DD69862C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-09-21 at 1.46.06 PM.png" alt="Screen Shot 2022-09-21 at 1.46.06 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-21 at 1.45.33 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75465i3689DA586C21A5F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-09-21 at 1.45.33 PM.png" alt="Screen Shot 2022-09-21 at 1.45.33 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I was successful momentarily in my last attempt to create a library, but I wanted to try again using other instructions given.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 21:49:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834584#M1205</guid>
      <dc:creator>Sassy_lady</dc:creator>
      <dc:date>2022-09-21T21:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834586#M1207</link>
      <description>&lt;P&gt;Can you show a screenshot of the mywork&amp;nbsp;library expanded in the corner to show the data set name?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, what happens when you run the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=mywork._all_;
run;&lt;/CODE&gt;&lt;/PRE&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 22:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834586#M1207</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-09-21T22:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834588#M1208</link>
      <description>In your screenshots you shouldn't have quotes before the dataset name. I can see the course does, but when referring to a data set with the libname method that notation is incorrect. Quotes are used for when specifying the full path name. The libname method simplifies this so you don't have to always type out the full path name. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Sep 2022 22:03:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834588#M1208</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-09-21T22:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834589#M1209</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-21 at 3.03.23 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75466iCB8284B5AE2AB541/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-09-21 at 3.03.23 PM.png" alt="Screen Shot 2022-09-21 at 3.03.23 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I get it now, but it still does not work. I don't know what I am doing wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 22:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834589#M1209</guid>
      <dc:creator>Sassy_lady</dc:creator>
      <dc:date>2022-09-21T22:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834591#M1210</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-21 at 3.07.16 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75467i4DA298C0C1F9B735/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-09-21 at 3.07.16 PM.png" alt="Screen Shot 2022-09-21 at 3.07.16 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No luck&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 22:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834591#M1210</guid>
      <dc:creator>Sassy_lady</dc:creator>
      <dc:date>2022-09-21T22:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834599#M1214</link>
      <description>&lt;P&gt;In your first screenshot you have two of the most frequent SAS coding mistakes.&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;Missing semicolon and unbalanced quotes.&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1663801716522.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75468i742286E955D3B96D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_0-1663801716522.png" alt="Tom_0-1663801716522.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;On line 71 you never ended the LIBNAME statement so SAS thinks that the words&amp;nbsp; PROC, CONTENTS and DATA= are some type of LIBNAME options that comes after the path.&amp;nbsp; (There are such things, for example you can add ACCESS=READONLY to help prevent you from modifying any of the datasets in that library).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then in line 73 you started to put quotes around the dataset name (which is also a mistake), but you never closed the quotes.&amp;nbsp; &amp;nbsp;So that means that everything up to the next quote will be considered part of the quoted string being used as the value of the DATA= option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your next photograph you show an invalid dataset name.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_1-1663802056331.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75469i2918A460B6608E74/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_1-1663802056331.png" alt="Tom_1-1663802056331.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The part before the period is name assigned in the LIBNAME statement, the libref.&amp;nbsp; The part after period is the dataset name (the member name).&amp;nbsp; Dataset names cannot contain periods (unless you set the system option VALIDMEMNAME to EXTEND, but then you would need to use a &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/p0z9rbr2w2vtd1n1q8lty9b13iv3.htm" target="_self"&gt;NAME LITERAL&lt;/A&gt; and not just the bare period you used.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The name of the DATASET is CLASS_BIRTHDAT (dataset names are NOT case sensitive).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The name of the FILE that SAS uses to store the dataset is class_birthdat.sas7bdat (filenames on a Unix operating system ARE case sensitive and SAS datasets names never use uppercase letters on Unix).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 23:22:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834599#M1214</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-09-21T23:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834665#M1216</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You forgot to put the forward slash after the ~ in your libname statement.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 14:39:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834665#M1216</guid>
      <dc:creator>brzcol</dc:creator>
      <dc:date>2022-09-22T14:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834733#M1219</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-22 at 12.54.52 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75511iA4562551BB72BA96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-09-22 at 12.54.52 PM.png" alt="Screen Shot 2022-09-22 at 12.54.52 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, it worked!. Thank you. I think this is also challenging for me, because there are so many detailed functions to remember like quotes, semicolons, and capitalizations, not to mention I am dyslexic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-22 at 12.57.08 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75512iF266497D097D49C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-09-22 at 12.57.08 PM.png" alt="Screen Shot 2022-09-22 at 12.57.08 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Now is this directory stored in this new folder I created permanently?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 19:59:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834733#M1219</guid>
      <dc:creator>Sassy_lady</dc:creator>
      <dc:date>2022-09-22T19:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834747#M1221</link>
      <description>&lt;P&gt;Ok, I have another libname issue. When performing the Programming 1 Essentials: Lesson 2. I'm using p102d02 and this is the code I am running to make a folder for XLSTORM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options validvarname=v7;

libname xlstorm xlsx "s:/workshop/data/storm.xlsx";

proc contents data=xlstorm.storm_summary ;
run;

libname xlsx clear;
&lt;/PRE&gt;
&lt;P&gt;I only highlighted the first two lines as instructed and was able to successfully create the folder, but there is no storm_summary content.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-09-22 at 1.47.55 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75515i5698802AAC8A5DBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-09-22 at 1.47.55 PM.png" alt="Screen Shot 2022-09-22 at 1.47.55 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;When I try to run everything this is the message I receive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 70         
 71         options validvarname=v7;
 72         
 73         *Complete the LIBNAME statement;
 74         libname xlstorm xlsx "s:/workshop/data/storm.xlsx";
 NOTE: Libref XLSTORM was successfully assigned as follows: 
       Engine:        XLSX 
       Physical Name: s:/workshop/data/storm.xlsx
 75         
 76         *Complete the DATA= option to reference the STORM_SUMMARY worksheet;
 77         proc contents data=xlstorm.storm_summary ;
 ERROR: File XLSTORM.storm_summary.DATA does not exist.
 78         run;
 
 NOTE: Statements not processed because of errors noted above.
 NOTE: PROCEDURE CONTENTS used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              1942.53k
       OS Memory           30008.00k
       Timestamp           09/22/2022 08:48:22 PM
       Step Count                        127  Switch Count  0
       Page Faults                       0
       Page Reclaims                     545
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           8
       
 NOTE: The SAS System stopped processing this step because of errors.
 79         
 80         libname xlsx clear;
 WARNING: Libref XLSX is not assigned.
 81         
 82         
 83         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 94         
 User: u60771588
&lt;/PRE&gt;
&lt;P&gt;Your help is appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 20:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834747#M1221</guid>
      <dc:creator>Sassy_lady</dc:creator>
      <dc:date>2022-09-22T20:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834788#M1223</link>
      <description>&lt;P&gt;Open the xlsx file with Excel (if it actually exists) to see which spreadsheets are contained in it.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 03:00:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834788#M1223</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-09-23T03:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834835#M1224</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You need to replace&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;s:/workshop/data/storm.xlsx&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;in the libname statement with the path to the storm.xlsx file in your environment, which I suspect (form previous screenshot) would be /home/u60771588/EPG1V2/data/storm.xlsx or ~//EPG1V2/data/storm.xlsx ( the ~ symbol will automatically point to YOUR home directory,&amp;nbsp;/home/u60771588).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anytime you need to find the exact path to a folder or data table, you can right-click on the folder or table from Server Files &amp;amp; Folders tab &amp;amp; then select "Properties" - this will show you the path &amp;amp; you can copy &amp;amp; paste that into your code.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 13:50:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834835#M1224</guid>
      <dc:creator>tom_grant</dc:creator>
      <dc:date>2022-09-23T13:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834934#M1225</link>
      <description>Hi:&lt;BR /&gt;  This is valid PROC CONTENTS syntax:&lt;BR /&gt;proc contents data="/home/&amp;lt;userID&amp;gt;/EPG1V2/data/storm_summary.sas7bdat";&lt;BR /&gt;run;&lt;BR /&gt;  That is what the first slide is showing. In that example, we are showing the students that it is POSSIBLE to use a fully qualified file name and file extension in the DATA= option of PROC CONTENTS.&lt;BR /&gt;  &lt;BR /&gt;  Then, we show them the LIBNAME syntax. The LIBNAME syntax on SAS OnDemand for Academics for the Programming 1 class would be:&lt;BR /&gt;libname PG1 "/home/&amp;lt;userID&amp;gt;/EPG1V2/data";&lt;BR /&gt;&lt;BR /&gt;Note that there is NOT a physical filename and file extension on the LIBNAME statement because the LIBNAME statement is pointing to a collection of SAS files, whereas the PROC CONTENTS example with a physical file name was pointing to just one file. So the equivalent PROC CONTENTS for the storm_summary SAS dataset using the 2 level reference would be:&lt;BR /&gt;proc contents data=PG1.storm_summary;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Note that when you use the 2 level name -- libname.datasetname -- there are NOT any quotes. However, when you use the physical path location for PROC CONTENTS, there do need to be quotes. I think that somehow the confusion came in understanding the difference between a physical file name shown once in the class and having just one practice in the class. After we show the use of the LIBNAME statement in class, we NEVER show the physical file method again, ever. So that one example was mean to be something of a motivation for why the LIBNAME statement is very useful -- because is makes it possible for you to run the SAME program on 2 different operating systems, by just changing the LIBNAME statment. &lt;BR /&gt;&lt;BR /&gt;  For example, I can write and test THIS code on my instructor machine:&lt;BR /&gt;libname PG1 's:\workshop\EPG1V2\data';&lt;BR /&gt;proc contents data=PG1.storm_summary;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data=PG1.storm_summary;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;and then I can give that code to my co-worker on a UNIX system and then ONLY need to change the LIBNAME statement to the location for the data on their system &lt;BR /&gt;LIBNAME PG1 '/usr/sasdqd/myclass/EPG1V2/data';&lt;BR /&gt;&lt;BR /&gt;...and ALL the rest of the code could run unchanged.&lt;BR /&gt;&lt;BR /&gt;Note that there is NOT any file name or file extension in the LIBNAME statement.&lt;BR /&gt;Cynthia</description>
      <pubDate>Fri, 23 Sep 2022 19:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834934#M1225</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-09-23T19:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834951#M1226</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;One way to see the names of the sheets in the XLSX file is to use the XLSX LIBNAME engine. For example, we have a multi-sheet workbook called &lt;FONT face="courier new,courier" color="#FF00FF"&gt;&lt;STRONG&gt;STORM.XLSX&lt;/STRONG&gt;&lt;/FONT&gt; in the EPG1V2 data folder. So with this LIBNAME XLSX (below) statement, you could run the PROC CONTENTS to see the names of all the SHEETS. And one of the sheets is named &lt;FONT face="courier new,courier" color="#0000FF"&gt;&lt;STRONG&gt;storm_2017&lt;/STRONG&gt;&lt;/FONT&gt;, so this code would work to do the PROC CONTENTS and then print some rows from the storm_2017 sheet:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;libname &lt;FONT color="#FF00FF"&gt;&lt;FONT color="#008000"&gt;xl_storm&lt;/FONT&gt; xlsx&lt;/FONT&gt; 's:\workshop\EPG1V2\data\&lt;FONT color="#FF00FF"&gt;storm.xlsx&lt;/FONT&gt;';&amp;nbsp; /* windows */&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;**OR;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;libname &lt;FONT color="#FF00FF"&gt;&lt;FONT color="#008000"&gt;xl_storm&lt;/FONT&gt; xlsx&lt;/FONT&gt; '/home/&amp;lt;userID&amp;gt;/EPG1V2/data/&lt;FONT color="#FF00FF"&gt;storm.xlsx&lt;/FONT&gt;'; /* SAS OnDemand */&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc contents data=&lt;FONT color="#008000"&gt;xl_storm&lt;/FONT&gt;._all_;&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;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc print data=&lt;FONT color="#008000"&gt;xl_storm&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;.storm_2017&lt;/FONT&gt; (obs=20);&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;libname &lt;FONT color="#008000"&gt;xl_storm &lt;/FONT&gt;clear;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;The other way to see the names is to open the file with Excel. However, the XLSX file won't be opened on the SAS OnDemand server because it is a Linux server and it doesn't have Excel. so the PROC CONTENTS method is the programmatic way to see the sheets in the workbook.&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 19:25:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/834951#M1226</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-09-23T19:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/835291#M1227</link>
      <description>&lt;P&gt;Yes, thank you. I changed the libname filepath to "~/EPG1V2/data/" and it worked.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:13:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/835291#M1227</guid>
      <dc:creator>Sassy_lady</dc:creator>
      <dc:date>2022-09-26T20:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Contents and Libname</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/835297#M1228</link>
      <description>&lt;P&gt;Yes, thank you again. I changed the libname filepath to "~/EPG1V2/data/" instead of the "s:workshop/EPG1V2/data" since I am using SAS studio.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:15:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Proc-Contents-and-Libname/m-p/835297#M1228</guid>
      <dc:creator>Sassy_lady</dc:creator>
      <dc:date>2022-09-26T20:15:01Z</dc:date>
    </item>
  </channel>
</rss>

