<?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: Advanced SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Advanced-SAS/m-p/496094#M131108</link>
    <description>&lt;P&gt;yes very well explained.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this question is given what Option do&amp;nbsp; you choose.&lt;/P&gt;&lt;P&gt;D or B.&lt;/P&gt;&lt;P&gt;My guess is D the closest I can think of.&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes I am preparing for the exam as well. Good luck to you as well.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Sep 2018 00:53:02 GMT</pubDate>
    <dc:creator>ttp</dc:creator>
    <dc:date>2018-09-17T00:53:02Z</dc:date>
    <item>
      <title>Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Advanced-SAS/m-p/495852#M130968</link>
      <description>&lt;P&gt;data work.one;&lt;BR /&gt;input name$ years;&lt;BR /&gt;cards;&lt;BR /&gt;Joyce 9&lt;BR /&gt;John 4&lt;BR /&gt;John 2&lt;BR /&gt;jane 6&lt;BR /&gt;Tomas 8&lt;BR /&gt;;&lt;BR /&gt;data work.two;&lt;BR /&gt;input name$ years;&lt;BR /&gt;cards;&lt;BR /&gt;Joyce 31&lt;BR /&gt;John 42&lt;BR /&gt;Robert 25&lt;BR /&gt;Bob 22&lt;BR /&gt;Jeff 42&lt;BR /&gt;;&lt;BR /&gt;proc sql;&lt;BR /&gt;select Avg(years)&lt;BR /&gt;label="Average of Employment"&lt;BR /&gt;from work.one&lt;BR /&gt;where name in&lt;BR /&gt;(select *&lt;BR /&gt;from work.one&lt;BR /&gt;except corr&lt;BR /&gt;select *&lt;BR /&gt;from work.two);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;what will be the output?&lt;/P&gt;&lt;P&gt;A. &lt;SPAN&gt;Average of Employment 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;B.Average of Employment 7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;C&amp;nbsp;Average of Employment 6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;D. ERROR: Subquery evaluated to more than one row&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2018 00:15:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Advanced-SAS/m-p/495852#M130968</guid>
      <dc:creator>ttp</dc:creator>
      <dc:date>2018-09-15T00:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Advanced-SAS/m-p/495854#M130969</link>
      <description>&lt;P&gt;A subquery cannot select more than one column.&lt;/P&gt;&lt;P&gt;D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2018 00:18:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Advanced-SAS/m-p/495854#M130969</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-15T00:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Advanced-SAS/m-p/495855#M130970</link>
      <description>D says rows but the issue is columns.&lt;BR /&gt;D for the error.</description>
      <pubDate>Sat, 15 Sep 2018 00:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Advanced-SAS/m-p/495855#M130970</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-15T00:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Advanced-SAS/m-p/495856#M130971</link>
      <description>&lt;P&gt;Yeah - what they said. Start at the inner subquery. You are sort of creating a two column table right there. The where statement is looking for name from a list of names, but you haven't specified which of those two columns&amp;nbsp;has name. Even if the select * from subquery has a column called name, it isn't going to assume it contains the same "name" data that's in your outer query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck on the exam. I'm studying for it too.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2018 00:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Advanced-SAS/m-p/495856#M130971</guid>
      <dc:creator>bobpep212</dc:creator>
      <dc:date>2018-09-15T00:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Advanced-SAS/m-p/495857#M130972</link>
      <description>&lt;P&gt;as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/111380"&gt;@bobpep212&lt;/a&gt; says change the second * to name and the answer is 7 for B but the code Errors. as is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.one;
input name$ years;
cards;
Joyce 9
John 4
John 2
jane 6
Tomas 8
;
data work.two;
input name$ years;
cards;
Joyce 31
John 42
Robert 25
Bob 22
Jeff 42
;
proc sql;
select Avg(years)
label="Average of Employment"
from work.one
where name in
(select *
from work.one
except corr
select&lt;EM&gt;&lt;STRONG&gt; name &lt;/STRONG&gt;&lt;/EM&gt;from work.two);
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Sep 2018 01:02:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Advanced-SAS/m-p/495857#M130972</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-17T01:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Advanced-SAS/m-p/496094#M131108</link>
      <description>&lt;P&gt;yes very well explained.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this question is given what Option do&amp;nbsp; you choose.&lt;/P&gt;&lt;P&gt;D or B.&lt;/P&gt;&lt;P&gt;My guess is D the closest I can think of.&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes I am preparing for the exam as well. Good luck to you as well.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 00:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Advanced-SAS/m-p/496094#M131108</guid>
      <dc:creator>ttp</dc:creator>
      <dc:date>2018-09-17T00:53:02Z</dc:date>
    </item>
  </channel>
</rss>

