<?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 sample question no.10 in SAS Certification</title>
    <link>https://communities.sas.com/t5/SAS-Certification/sample-question-no-10/m-p/702133#M1086</link>
    <description>&lt;P&gt;Given the SAS data set WORK.INPUT:&lt;BR /&gt;Var1 Var2&lt;BR /&gt;------ -------&lt;BR /&gt;A one&lt;BR /&gt;A two&lt;BR /&gt;B three&lt;BR /&gt;C four&lt;BR /&gt;A five&lt;BR /&gt;The following SAS program is submitted:&lt;BR /&gt;data WORK.ONE WORK.TWO;&lt;BR /&gt;set WORK.INPUT;&lt;BR /&gt;if Var1='A' then output WORK.ONE;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;BR /&gt;How many observations will be in data set WORK.ONE?&lt;/P&gt;&lt;P&gt;I do not understand why the observation is 8. I only got 3 observations when Var1 is A.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 28 Nov 2020 00:46:20 GMT</pubDate>
    <dc:creator>anming</dc:creator>
    <dc:date>2020-11-28T00:46:20Z</dc:date>
    <item>
      <title>sample question no.10</title>
      <link>https://communities.sas.com/t5/SAS-Certification/sample-question-no-10/m-p/702133#M1086</link>
      <description>&lt;P&gt;Given the SAS data set WORK.INPUT:&lt;BR /&gt;Var1 Var2&lt;BR /&gt;------ -------&lt;BR /&gt;A one&lt;BR /&gt;A two&lt;BR /&gt;B three&lt;BR /&gt;C four&lt;BR /&gt;A five&lt;BR /&gt;The following SAS program is submitted:&lt;BR /&gt;data WORK.ONE WORK.TWO;&lt;BR /&gt;set WORK.INPUT;&lt;BR /&gt;if Var1='A' then output WORK.ONE;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;BR /&gt;How many observations will be in data set WORK.ONE?&lt;/P&gt;&lt;P&gt;I do not understand why the observation is 8. I only got 3 observations when Var1 is A.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 00:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/sample-question-no-10/m-p/702133#M1086</guid>
      <dc:creator>anming</dc:creator>
      <dc:date>2020-11-28T00:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: sample question no.10</title>
      <link>https://communities.sas.com/t5/SAS-Certification/sample-question-no-10/m-p/702136#M1087</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/356091"&gt;@anming&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Given the SAS data set WORK.INPUT:&lt;BR /&gt;Var1 Var2&lt;BR /&gt;------ -------&lt;BR /&gt;A one&lt;BR /&gt;A two&lt;BR /&gt;B three&lt;BR /&gt;C four&lt;BR /&gt;A five&lt;BR /&gt;The following SAS program is submitted:&lt;BR /&gt;data WORK.ONE WORK.TWO;&lt;BR /&gt;set WORK.INPUT;&lt;BR /&gt;if Var1='A' then output WORK.ONE;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;BR /&gt;How many observations will be in data set WORK.ONE?&lt;/P&gt;
&lt;P&gt;I do not understand why the observation is 8. I only got 3 observations when Var1 is A.&amp;nbsp;&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;
&lt;P&gt;Let's see here: one line tests to see if VAR1='A' and then outputs three records to WORK.ONE. The next line outputs all records to WORK.ONE. That's 8&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 01:07:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/sample-question-no-10/m-p/702136#M1087</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-11-28T01:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: sample question no.10</title>
      <link>https://communities.sas.com/t5/SAS-Certification/sample-question-no-10/m-p/702152#M1088</link>
      <description>&lt;PRE&gt;data test;&lt;BR /&gt;input var1$ var2$;&lt;BR /&gt;datalines;&lt;BR /&gt;A one&lt;BR /&gt;A Two&lt;BR /&gt;B Three&lt;BR /&gt;C four&lt;BR /&gt;A five&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data work.one work.two;&lt;BR /&gt;set test;&lt;BR /&gt;if var1='A' then output work.one;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;these are test codes. &lt;BR /&gt;&lt;BR /&gt;work.one has 8 observions while work.two has 5 observions. Wonderful!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Nov 2020 03:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/sample-question-no-10/m-p/702152#M1088</guid>
      <dc:creator>anming</dc:creator>
      <dc:date>2020-11-28T03:49:14Z</dc:date>
    </item>
  </channel>
</rss>

