<?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: what are the errors in this program in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/what-are-the-errors-in-this-program/m-p/591620#M169517</link>
    <description>Thank you very much! Your help is much appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Wed, 25 Sep 2019 17:15:50 GMT</pubDate>
    <dc:creator>Amy0223</dc:creator>
    <dc:date>2019-09-25T17:15:50Z</dc:date>
    <item>
      <title>what are the errors in this program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-are-the-errors-in-this-program/m-p/591608#M169505</link>
      <description>&lt;P&gt;I have this question below. Should it be drop&amp;nbsp;&lt;STRONG&gt;=&amp;nbsp;&lt;/STRONG&gt;lev1 lev2? I'm not sure what else is wrong with this program. Any help is greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. What, if anything, is wrong with the following program? As usual, an ellipsis (. . .) represents portions of the program that have no bearing on the exercise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data one;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile . . . ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input id $ subgrp $ lev1 lev2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total = lev1 + lev2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop lev1 lev2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc freq data=one;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables total lev1 lev2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 16:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-are-the-errors-in-this-program/m-p/591608#M169505</guid>
      <dc:creator>Amy0223</dc:creator>
      <dc:date>2019-09-25T16:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: what are the errors in this program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-are-the-errors-in-this-program/m-p/591611#M169507</link>
      <description>&lt;P&gt;You dropped lev1 and lev2 from data set one, therefore they do not exist in data set one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DROP removes variables from the data set.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the PROC FREQ you then try to use LEV1, LEV2 but they no longer exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265801"&gt;@Amy0223&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have this question below. Should it be drop&amp;nbsp;&lt;STRONG&gt;=&amp;nbsp;&lt;/STRONG&gt;lev1 lev2? I'm not sure what else is wrong with this program. Any help is greatly appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. What, if anything, is wrong with the following program? As usual, an ellipsis (. . .) represents portions of the program that have no bearing on the exercise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data one;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile . . . ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input id $ subgrp $ lev1 lev2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total = lev1 + lev2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop lev1 lev2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc freq data=one;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables total lev1 lev2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 16:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-are-the-errors-in-this-program/m-p/591611#M169507</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-09-25T16:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: what are the errors in this program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-are-the-errors-in-this-program/m-p/591620#M169517</link>
      <description>Thank you very much! Your help is much appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 25 Sep 2019 17:15:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-are-the-errors-in-this-program/m-p/591620#M169517</guid>
      <dc:creator>Amy0223</dc:creator>
      <dc:date>2019-09-25T17:15:50Z</dc:date>
    </item>
  </channel>
</rss>

