<?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 Identifying the Top Three Extreme Values with the Output Statistics: &amp;quot;Variable PARKNAME not found&amp;quot;: in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Identifying-the-Top-Three-Extreme-Values-with-the-Output/m-p/859563#M339589</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was completing the Challenge Practice for Lesson 5 in SAS Programming 1 called "Identifying the Top Three Extreme Values with the Output Statistics". I continue to receive an error message saying "Variable PARKNAME not found" even when I run answer code listed in the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moreover, the only time the code runs to the output data tab is when I add a data step and even so, "TotalVisitors" and "Visitors" column are blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My questions are:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Can you please explain why I am receiving "Variable PARKNAME not found" error message?&lt;/P&gt;&lt;P&gt;2. Can you please explain why the code is only running when I add a data step?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The proposed solution:&lt;/STRONG&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="SAS121_1-1676749851947.png" style="width: 767px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80571iDF029EDDBF161F86/image-dimensions/767x531?v=v2" width="767" height="531" role="button" title="SAS121_1-1676749851947.png" alt="SAS121_1-1676749851947.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error message when running the proposed solution&lt;/STRONG&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="SAS121_2-1676749903125.png" style="width: 759px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80572i28696C5EFE761B3E/image-dimensions/759x440?v=v2" width="759" height="440" role="button" title="SAS121_2-1676749903125.png" alt="SAS121_2-1676749903125.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only time the code runs is when I add a data step&lt;/STRONG&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="SAS121_3-1676750294296.png" style="width: 727px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80573i11F7738C071994D0/image-dimensions/727x331?v=v2" width="727" height="331" role="button" title="SAS121_3-1676750294296.png" alt="SAS121_3-1676750294296.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Feb 2023 20:03:03 GMT</pubDate>
    <dc:creator>SAS121</dc:creator>
    <dc:date>2023-02-18T20:03:03Z</dc:date>
    <item>
      <title>Identifying the Top Three Extreme Values with the Output Statistics: "Variable PARKNAME not found":</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-the-Top-Three-Extreme-Values-with-the-Output/m-p/859563#M339589</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was completing the Challenge Practice for Lesson 5 in SAS Programming 1 called "Identifying the Top Three Extreme Values with the Output Statistics". I continue to receive an error message saying "Variable PARKNAME not found" even when I run answer code listed in the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moreover, the only time the code runs to the output data tab is when I add a data step and even so, "TotalVisitors" and "Visitors" column are blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My questions are:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Can you please explain why I am receiving "Variable PARKNAME not found" error message?&lt;/P&gt;&lt;P&gt;2. Can you please explain why the code is only running when I add a data step?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The proposed solution:&lt;/STRONG&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="SAS121_1-1676749851947.png" style="width: 767px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80571iDF029EDDBF161F86/image-dimensions/767x531?v=v2" width="767" height="531" role="button" title="SAS121_1-1676749851947.png" alt="SAS121_1-1676749851947.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error message when running the proposed solution&lt;/STRONG&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="SAS121_2-1676749903125.png" style="width: 759px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80572i28696C5EFE761B3E/image-dimensions/759x440?v=v2" width="759" height="440" role="button" title="SAS121_2-1676749903125.png" alt="SAS121_2-1676749903125.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only time the code runs is when I add a data step&lt;/STRONG&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="SAS121_3-1676750294296.png" style="width: 727px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80573i11F7738C071994D0/image-dimensions/727x331?v=v2" width="727" height="331" role="button" title="SAS121_3-1676750294296.png" alt="SAS121_3-1676750294296.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 20:03:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-the-Top-Three-Extreme-Values-with-the-Output/m-p/859563#M339589</guid>
      <dc:creator>SAS121</dc:creator>
      <dc:date>2023-02-18T20:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying the Top Three Extreme Values with the Output Statistics: "Variable PARKNAME not</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identifying-the-Top-Three-Extreme-Values-with-the-Output/m-p/859564#M339590</link>
      <description>&lt;P&gt;Check to see if PARKNAME is a valid variable in the data set:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=pg1.np_multiyr;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You are using the NOPRINT option, so the PROC MEANS call does not produce any output. Perhaps that is why you think it is not running? Clearly it is running because it is giving you an error. However, it is not creating an output data set because of the error, so fix the error first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am surprised that you are not seeing a WARNING such as&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;WARNING: The data set WORK.TOP3PARKS may be incomplete. When this step was stopped there were 0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;observations and 0 variables.&lt;/STRONG&gt;&lt;BR /&gt;Double-check the log.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 20:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identifying-the-Top-Three-Extreme-Values-with-the-Output/m-p/859564#M339590</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-02-18T20:15:34Z</dc:date>
    </item>
  </channel>
</rss>

