<?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: SAS Programming essentials - Lesson 3 - Stuck again! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521731#M141578</link>
    <description>&lt;P&gt;check all of the folders in PG1 and find the dataset you need, you may need to create a libname statement to the folder that contains the required incoming data.&lt;/P&gt;</description>
    <pubDate>Sat, 15 Dec 2018 18:11:49 GMT</pubDate>
    <dc:creator>VDD</dc:creator>
    <dc:date>2018-12-15T18:11:49Z</dc:date>
    <item>
      <title>SAS Programming essentials - Lesson 3 - Stuck again!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521721#M141575</link>
      <description>&lt;P&gt;&lt;SPAN&gt;proc print &lt;/SPAN&gt;&lt;STRONG&gt;data=pg1.np_summary(obs=20)&lt;/STRONG&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;STRONG&gt;var Reg Type ParkName DayVisits TentCampers RVCampers;&lt;/STRONG&gt;&lt;SPAN&gt; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Having trouble with this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Have got PG1 back - Though doesn't look as though NP parks is in that folder, should it be?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Tried using full properties description for np parks summary - Still getting loads of errors&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas / solutions would be welcome.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Stu&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 16:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521721#M141575</guid>
      <dc:creator>Stu44</dc:creator>
      <dc:date>2018-12-15T16:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming essentials - Lesson 3 - Stuck again!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521728#M141577</link>
      <description>&lt;P&gt;Please post the errors from the log&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 17:42:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521728#M141577</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-12-15T17:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming essentials - Lesson 3 - Stuck again!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521731#M141578</link>
      <description>&lt;P&gt;check all of the folders in PG1 and find the dataset you need, you may need to create a libname statement to the folder that contains the required incoming data.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 18:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521731#M141578</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-12-15T18:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming essentials - Lesson 3 - Stuck again!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521735#M141579</link>
      <description>&lt;DIV class="sasSource"&gt;OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;70&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;71 proc print data="data/np_summary.sas7bdat (obs=20)";&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: The physical file name "data/np_summary.sas7bdat (obs=20)" is too long.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72 var Reg Type ParkName DayVisits TentCampers RVCampers;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Also not sure if I should save stuff to PG1 - Its empty at the moment. Any ideas how to quickly move stuff in there?&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Sat, 15 Dec 2018 18:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521735#M141579</guid>
      <dc:creator>Stu44</dc:creator>
      <dc:date>2018-12-15T18:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming essentials - Lesson 3 - Stuck again!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521736#M141580</link>
      <description>&lt;P&gt;proc print data='/home/YOURID/EPG194/data/np_summary.sas7bdat'(obs=20);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 18:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521736#M141580</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-12-15T18:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming essentials - Lesson 3 - Stuck again!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521737#M141581</link>
      <description>&lt;P&gt;Think that may be the problem - Got pg set up but nothing in it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any simple ways to move stuff there?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnaks&lt;/P&gt;</description>
      <pubDate>Sat, 15 Dec 2018 18:40:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521737#M141581</guid>
      <dc:creator>Stu44</dc:creator>
      <dc:date>2018-12-15T18:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming essentials - Lesson 3 - Stuck again!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521743#M141583</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The way you "put stuff" into the PG1 folder is by following the instructions to MAKE the data for the course. All the data in the PG1 course is in the /data subfolder. It is not correct to have a partial path in your statements. You need the FULL path. Here are some examples specific to this practice (and these examples assume that you have made the data correctly).&lt;/P&gt;
&lt;P&gt;1) Local Configuration of SAS on my C: drive:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;libname pg1 "c:\sas_class\EPG194\data";&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) SAS University Edition in a Virtual Machine:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;libname pg1 "/folders/myfolders/EPG194/data";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) SAS OnDemand for Academics account on cloud server (has 2 alternatives):&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;libname pg1 "/home/&amp;lt;userid&amp;gt;/EPG194/data";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;libname pg1 "~/EPG194/data";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;4) SAS Enterprise Guide with a local or server configuration:&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;libname pg1 "&amp;amp;path";&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;&amp;nbsp; If you remember, in Lesson 2, there were EXACT instructions in a REQUIRED activity for you to make a file called LIBNAME.SAS in order to define the PG1 library. So the above are examples for the possible LIBNAME statements you might have in your LIBNAME.SAS file. Once you define a library reference with a LIBNAME statement, that means you no longer have to use the "sas7bdat" file extension in your code. Here's the required activity in Lesson 2:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="make_libname_Lesson2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25720i839002DC7649531A/image-size/large?v=v2&amp;amp;px=999" role="button" title="make_libname_Lesson2.png" alt="make_libname_Lesson2.png" /&gt;&lt;/span&gt;&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;Based on your error message, there are several things that you are doing wrong. First, it doesn't look like you're using the PG1 library reference at all because you put part of the operating system file name in quotes after data=; next, the (obs=20) is NOT part of the DATA= option:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="solution_np_summary.png" style="width: 491px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25721iA3578AA0B361CEC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="solution_np_summary.png" alt="solution_np_summary.png" /&gt;&lt;/span&gt;&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;Note that there is a Reminder at the top of the Practice that tells you, explicitly, to submit LIBNAME.SAS before you start. If LIBNAME.SAS is incorrect, then none of the other practices in the course are going to work for you. So you need to go back to Lesson 2 and make sure that you have correctly created the LIBNAME.SAS file so it points to your DATA folder.&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;&amp;nbsp; The easiest way to get the correct path for your LIBNAME statement is to find the EPG194/data folder in SAS Studio, click once on the data folder name and then right-click and select Properties. In the Location field on the Properties window, you will see the correct FULL path that you should use. Then you would construct your libname.sas program file, as instructed.&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;&amp;nbsp; If you do not understand the purpose of a LIBNAME statement, then please go back to Lesson 2 and re-watch the lecture entitled "Using a Library to Read SAS Data", in particular, time stamp 1:28-2:38 as shown below: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snip_from_lecture.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25722i1834886BDBF08FF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="snip_from_lecture.png" alt="snip_from_lecture.png" /&gt;&lt;/span&gt;&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;Note that in the lecture, when you use a library reference, such a MYLIB or PG1, you do NOT need to put the name of the dataset in quotes and you do NOT need to use the sas7bdat file extension.&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;&amp;nbsp; Once you get your LIBNAME statement figured out, the solution that is shown inside the course practice slide should work for you, as written.&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, 15 Dec 2018 20:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521743#M141583</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-12-15T20:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming essentials - Lesson 3 - Stuck again!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521783#M141593</link>
      <description>&lt;P&gt;Thanks once again, Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was so basic what I was doing wrong, the more I looked the less I saw!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for getting me back on track.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;</description>
      <pubDate>Sun, 16 Dec 2018 10:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/521783#M141593</guid>
      <dc:creator>Stu44</dc:creator>
      <dc:date>2018-12-16T10:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming essentials - Lesson 3 - Stuck again!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/676629#M204038</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate the answers you gave and I solved my problem which stuck me one day!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 02:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programming-essentials-Lesson-3-Stuck-again/m-p/676629#M204038</guid>
      <dc:creator>Chaoyiliu</dc:creator>
      <dc:date>2020-08-14T02:04:19Z</dc:date>
    </item>
  </channel>
</rss>

