<?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: Lesson 4_ Level 1 Practice: Creating New Columns (p104p04.sas) in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/870423#M1341</link>
    <description>That is very possible, thank you for the feedback.</description>
    <pubDate>Tue, 18 Apr 2023 18:31:41 GMT</pubDate>
    <dc:creator>shaun_w</dc:creator>
    <dc:date>2023-04-18T18:31:41Z</dc:date>
    <item>
      <title>Lesson 4_ Level 1 Practice: Creating New Columns (p104p04.sas)</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854040#M1265</link>
      <description>&lt;P&gt;Hi, I copied the SAS code from the solution into SAS Studio and my results show that the values&lt;SPAN&gt;&amp;nbsp;of&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;SqMiles&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Camping&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;in row one are&amp;nbsp; 0. However, the solution says:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;nbsp;&lt;STRONG&gt;SqMiles&lt;/STRONG&gt;&amp;nbsp;is&amp;nbsp;&lt;EM&gt;1,014&lt;/EM&gt;&amp;nbsp;and the value of&amp;nbsp;&lt;STRONG&gt;Camping&lt;/STRONG&gt;&amp;nbsp;is&amp;nbsp;&lt;EM&gt;6,375".&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone else having this issue?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 03:20:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854040#M1265</guid>
      <dc:creator>ohaetok</dc:creator>
      <dc:date>2023-01-17T03:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 4_ Level 1 Practice: Creating New Columns (p104p04.sas)</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854054#M1266</link>
      <description>&lt;P&gt;Please post the complete log (all code, all messages) by copy/pasting it into a window opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 07:36:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854054#M1266</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-01-17T07:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 4_ Level 1 Practice: Creating New Columns (p104p04.sas)</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854178#M1267</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;I just tested the code and got the same correct results as that shown in the answer for the question (1014 and 6375). So I can't duplicate your experience. &lt;BR /&gt;&lt;BR /&gt;The fact that you're getting 0 indicates to me that something might be wrong with your LIBNAME statement or possibly your input data set got accidentally deleted or corrupted. Did you see any Physical File not found messages in the log? &lt;BR /&gt;&lt;BR /&gt;In the np_summary_update data set that you create, the first row should be for Cape Krusenstern National Monument with SqMiles and Camping as indicated above. When you check the input data in pg1.np_summary, the data should have 135 rows and 10 variables. After you run your program, the work.np_summary_update data set should have 135 rows and 7 variables (because of the recommended KEEP).&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 18:41:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854178#M1267</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-01-17T18:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 4_ Level 1 Practice: Creating New Columns (p104p04.sas)</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854204#M1268</link>
      <description>&lt;P&gt;Hi, it doesn't seem like there is anything wrong with the files, unless I am missing something.&amp;nbsp; I am still getting 0 as the answers. I attached pictures of the code, the results for the modified table ( total rows:135, total columns 7), and results for the original table ( total rows:135, total columns: 10).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 21:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854204#M1268</guid>
      <dc:creator>ohaetok</dc:creator>
      <dc:date>2023-01-17T21:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 4_ Level 1 Practice: Creating New Columns (p104p04.sas)</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854205#M1269</link>
      <description>&lt;PRE&gt;data np_summary_update;
    set pg1.np_summary;
    keep Reg ParkName DayVisits OtherLodging Acres SqMiles Camping;
    SqMiles=Acres*.0015625;
    Camping=sum(OtherCamping,TentCampers,
                RVCampers,BackcountryCampers);
    format SqMiles comma6. Camping comma10.;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jan 2023 21:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854205#M1269</guid>
      <dc:creator>ohaetok</dc:creator>
      <dc:date>2023-01-17T21:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 4_ Level 1 Practice: Creating New Columns (p104p04.sas)</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854206#M1270</link>
      <description>&lt;PRE&gt;libname pg1 "/home/u44465073/EPG1V2/data";&lt;/PRE&gt;&lt;P&gt;this is the libname statement I use&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 21:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854206#M1270</guid>
      <dc:creator>ohaetok</dc:creator>
      <dc:date>2023-01-17T21:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 4_ Level 1 Practice: Creating New Columns (p104p04.sas)</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854210#M1271</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/409854"&gt;@ohaetok&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;data np_summary_update;
    set pg1.np_summary;
    keep Reg ParkName DayVisits OtherLodging Acres SqMiles Camping;
    SqMiles=Acres*.0015625;
    Camping=sum(OtherCamping,TentCampers,
                RVCampers,BackcountryCampers);
    format SqMiles comma6. Camping comma10.;
run;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The log was requested. This is not the log.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 21:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854210#M1271</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-17T21:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 4_ Level 1 Practice: Creating New Columns (p104p04.sas)</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854215#M1272</link>
      <description>&lt;PRE&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 68         
 69         data np_summary_update;
 70             set pg1.np_summary;
 71             keep Reg ParkName DayVisits OtherLodging Acres SqMiles Camping;
 72             SqMiles=Acres*.0015625;
 73             Camping=sum(OtherCamping,TentCampers,
 74                         RVCampers,BackcountryCampers);
 75             format SqMiles comma6. Camping comma10.;
 76         run;
 
 NOTE: There were 135 observations read from the data set PG1.NP_SUMMARY.
 NOTE: The data set WORK.NP_SUMMARY_UPDATE has 135 observations and 7 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              959.75k
       OS Memory           22440.00k
       Timestamp           01/17/2023 10:03:07 PM
       Step Count                        55  Switch Count  2
       Page Faults                       0
       Page Reclaims                     165
       Page Swaps                        0
       Voluntary Context Switches        18
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           264
       
 
 77         
 78         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 88         &lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jan 2023 22:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854215#M1272</guid>
      <dc:creator>ohaetok</dc:creator>
      <dc:date>2023-01-17T22:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 4_ Level 1 Practice: Creating New Columns (p104p04.sas)</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854308#M1273</link>
      <description>&lt;P&gt;So you are getting zero values where you expect non-zero values. Your code does not produce errors, as shown in the log. So the problem must be that the data contains values that are not expected. Please LOOK AT the data set named&amp;nbsp;pg1.np_summary with your own eyes to see if you can figure out why you are getting zeros.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 12:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/854308#M1273</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-18T12:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 4_ Level 1 Practice: Creating New Columns (p104p04.sas)</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/869698#M1339</link>
      <description>&lt;P&gt;I had the same issue with this question. It's a poorly written question and needs to be revised to specify what park they want as the answer instead of "Row 1"&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my 'row 1' slot without using any kind of sort -- because the question doesn't specify to sort -- was Noatak National Preserve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are several parks that are very small, and I'm guessing the original poster was using one of the parks that show 0 and 0, such as African Burial Grounds NM or Aztec Ruins NM possibly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The correct answer uses&amp;nbsp;&lt;SPAN&gt;Cape Krusenstern National Monument as the correct location. But I have no idea how they would ever arrive at that park ending up in Row 1.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unless I am missing something obvious, please let me know if I am, this is a very very poor question that needs to be revisited and revised.&amp;nbsp;&lt;/SPAN&gt;&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="shaun_w_0-1681445132578.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82680i6C6DE1861A3C8DED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shaun_w_0-1681445132578.png" alt="shaun_w_0-1681445132578.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 04:05:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/869698#M1339</guid>
      <dc:creator>shaun_w</dc:creator>
      <dc:date>2023-04-14T04:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 4_ Level 1 Practice: Creating New Columns (p104p04.sas)</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/870415#M1340</link>
      <description>&lt;P&gt;Thank you for the input. I'm guessing what happened is that you permanently sorted the table in a prior practice, which obviously impacted the order for this practice. I've updated the question in the course to this:&amp;nbsp;&lt;SPAN&gt;What are the values of&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;SqMiles&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Camping&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;when&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ParkName&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;is&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Cape Krusenstern National Monument&lt;/EM&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 18:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/870415#M1340</guid>
      <dc:creator>StaceySyphus</dc:creator>
      <dc:date>2023-04-18T18:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 4_ Level 1 Practice: Creating New Columns (p104p04.sas)</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/870423#M1341</link>
      <description>That is very possible, thank you for the feedback.</description>
      <pubDate>Tue, 18 Apr 2023 18:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/870423#M1341</guid>
      <dc:creator>shaun_w</dc:creator>
      <dc:date>2023-04-18T18:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 4_ Level 1 Practice: Creating New Columns (p104p04.sas)</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/870637#M1342</link>
      <description>&lt;P&gt;To kinda close the loop on this, I went back to the data set to see if I did sort it using PROC CONTENTS. When I pulled up the PROC CONTENTS for the temporary dataset we created, 'np_summary_update,' it shows that it wasn't sorted, but it does show that I sorted by Descending Acres when I use PROC CONTENTS on the original pg1.np_summary data. That was helpful to go back and look at that once you mentioned it, I'll keep that in mind moving forward, thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 20:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/870637#M1342</guid>
      <dc:creator>shaun_w</dc:creator>
      <dc:date>2023-04-19T20:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lesson 4_ Level 1 Practice: Creating New Columns (p104p04.sas)</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/870640#M1343</link>
      <description>&lt;P&gt;Thanks for following up!&amp;nbsp; Good learning exercise...&amp;nbsp; Regardless, your suggestion was valid to change the question so that it doesn't depend on a particular sort order.&amp;nbsp; I appreciate you taking the time to provide the feedback and see it through to the end. That helps us improve our training. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 20:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/Lesson-4-Level-1-Practice-Creating-New-Columns-p104p04-sas/m-p/870640#M1343</guid>
      <dc:creator>StaceySyphus</dc:creator>
      <dc:date>2023-04-19T20:39:00Z</dc:date>
    </item>
  </channel>
</rss>

