<?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: Base SAS certification exam question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100258#M28154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I agree with PGStats... do the counting...or write the program and run the program. Equally important for understanding how the logic works, after you figure out how many obs are in WORK.ONE, try to figure out how many obs will be in WORK.TWO, then try to figure out WHY the counts are different. As a help, here's the code that makes the dataset WORK.INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Then you should be able to code and test the rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data work.input;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; infile datalines;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; input var1 $ var2 $;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;return;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;datalines;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; one&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; two&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; three&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; four&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; five&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Aug 2013 17:55:53 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2013-08-04T17:55:53Z</dc:date>
    <item>
      <title>Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100256#M28152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Could anyone help me understand the logic behind the following question, before giving me the answer? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given the SAS data set WORK.INPUT: &lt;/P&gt;&lt;PRE class="jive-pre"&gt;Var1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Var2 &lt;/PRE&gt;&lt;PRE class="jive-pre"&gt; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; one&lt;/PRE&gt;&lt;PRE class="jive-pre"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; two&lt;/PRE&gt;&lt;PRE class="jive-pre"&gt; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; three&lt;/PRE&gt;&lt;PRE class="jive-pre"&gt; C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; four&lt;/PRE&gt;&lt;PRE class="jive-pre"&gt; A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; five &lt;/PRE&gt;&lt;P&gt; The following SAS program is submitted: &lt;/P&gt;&lt;PRE class="jive-pre"&gt;data WORK.ONE WORK.TWO; &lt;/PRE&gt;&lt;PRE class="jive-pre"&gt;set WORK.INPUT; &lt;/PRE&gt;&lt;PRE class="jive-pre"&gt;if Var1='A' then output WORK.ONE; &lt;/PRE&gt;&lt;PRE class="jive-pre"&gt;output;&lt;/PRE&gt;&lt;PRE class="jive-pre"&gt; run; &lt;/PRE&gt;&lt;P&gt; How many observations will be in data set WORK.ONE? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Aug 2013 02:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100256#M28152</guid>
      <dc:creator>GavyK</dc:creator>
      <dc:date>2013-08-04T02:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100257#M28153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The DATA statement announces that two datasets will be produced in the WORK library : ONE and TWO.&lt;/P&gt;&lt;P&gt;the OUTPUT WORK.ONE statement outputs Var1 and Var2 to dataset ONE, but only when Var1='A'&lt;/P&gt;&lt;P&gt;the OUTPUT statement outputs Var1 and Var2 to both datasets, whatever the value of Var1.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Do the counting &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Aug 2013 02:59:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100257#M28153</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-08-04T02:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100258#M28154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I agree with PGStats... do the counting...or write the program and run the program. Equally important for understanding how the logic works, after you figure out how many obs are in WORK.ONE, try to figure out how many obs will be in WORK.TWO, then try to figure out WHY the counts are different. As a help, here's the code that makes the dataset WORK.INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Then you should be able to code and test the rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data work.input;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; infile datalines;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; input var1 $ var2 $;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;return;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;datalines;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; one&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; two&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; three&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; four&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; five&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Aug 2013 17:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100258#M28154</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-08-04T17:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100259#M28155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, PGStats &amp;amp; Cynthia.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's another one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following SAS program is submitted:&lt;/P&gt;&lt;P&gt;data gt100;&lt;/P&gt;&lt;P&gt;set airplanes(keep = type mpg load);&lt;/P&gt;&lt;P&gt;load = mpg * 150;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;The program fails to execute due to syntax errors.&lt;/P&gt;&lt;P&gt;What is the cause of the syntax error?&lt;/P&gt;&lt;P&gt;A. MPG is not a numeric variable.&lt;/P&gt;&lt;P&gt;B. LOAD is not a variable in the data set GT100.&lt;/P&gt;&lt;P&gt;C. LOAD is not variable in the data set AIRPLANES.&lt;/P&gt;&lt;P&gt;D. LOAD must be defined prior to the SET statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Aug 2013 21:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100259#M28155</guid>
      <dc:creator>GavyK</dc:creator>
      <dc:date>2013-08-04T21:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100260#M28156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cambria','serif';"&gt;Cynthia, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cambria','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cambria','serif';"&gt; I am not sure if the code that you've given above would yield the same results as the code given in my original post. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My question says ' how many observations &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cambria','serif';"&gt;will be data set WORK.ONE? And if I run the count(as suggested by PGStats) then it is 8 observations of Var A that would go into WORK.ONE. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cambria','serif';"&gt;On the other hand,I did run the code that you gave, and what the DATALINES statement did was simply produced the same results as given in the code and total number of observation that the LOG gave were 5. So different results! thanks , anyways! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cambria','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cambria','serif';"&gt;Gavy&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Aug 2013 21:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100260#M28156</guid>
      <dc:creator>GavyK</dc:creator>
      <dc:date>2013-08-04T21:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100261#M28157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gary:&lt;/P&gt;&lt;P&gt;&amp;nbsp; My program will ONLY create WORK.INPUT. You would have needed to type in the *REST* of the program yourself. I said I was going to get you started. Clearly, since you already cut and pasted the question part of the program (with work.one and work.two), I didn't think I needed to retype that portion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So you are correct, that WORK.INPUT has 5 observations. That is "given" in the statement of the problem. If you had typed and run the *REST* of the program you would have been able to verify your counting, as shown in the attached log, that WORK.ONE has 8 obs and WORK.TWO has 5 obs. WORK.ONE has the "extra" obs because of the "extra" output in the IF statement.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10857iE5F1B539BED211F6/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="complete_answer.png" title="complete_answer.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Aug 2013 21:55:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100261#M28157</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-08-04T21:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100262#M28158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Nobody from the forum is going to be in the exam with you. Does the test question show you what variables are in WORK.AIRPLANES? You should be able to figure this one out, too.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Aug 2013 21:56:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100262#M28158</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-08-04T21:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100263#M28159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am cracking a list of sample questions and cross-checking reliability of solutions given on the website. I have my answers with me but some of the online answers seem to be wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Aug 2013 22:07:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100263#M28159</guid>
      <dc:creator>GavyK</dc:creator>
      <dc:date>2013-08-04T22:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100264#M28160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF (and it 's a big IF) any of the questions were wrong, they would be corrected immediately. But I am not aware of any of the sample questions being wrong. If you think the answer to a question is wrong, then write and run a program that shows it is wrong. You can send your program code and your log to &lt;A href="mailto:certification@sas.com"&gt;certification@sas.com&lt;/A&gt; to report a possible problem with the question/answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think it is safe to assume that the posted answers are correct. If you think an answer is wrong, then you need to figure out WHY or HOW the posted answer could be right and what about your approach led you to a different answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 03:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100264#M28160</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-08-05T03:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100265#M28161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have no information as to what variables are there in work.airplanes, the most probable answer can be option C&amp;nbsp; I guess. Because, The keep= option tries to access load variable to be used in later statements since it happened to be in SET statement. So, if load variable is not already defined in the airplanes dataset, the program would stop during execution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 20:16:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100265#M28161</guid>
      <dc:creator>JVarghese</dc:creator>
      <dc:date>2014-04-14T20:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100266#M28162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would write 8 obs in work.one dataset.&lt;/P&gt;&lt;P&gt;First output statement would write 3 obs (where var1 =''A' and second output statement would write each of the obs's to both the output datasets.&lt;/P&gt;&lt;P&gt;thus total obs written to work.one dataset = 3+5 =8&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jun 2014 14:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100266#M28162</guid>
      <dc:creator>Vikesh</dc:creator>
      <dc:date>2014-06-01T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100267#M28163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;8&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 07:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100267#M28163</guid>
      <dc:creator>KakaDa</dc:creator>
      <dc:date>2014-06-26T07:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100268#M28164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer is 8.&lt;/P&gt;&lt;P&gt;When assigned as OUTPUT in this program both in ONE &amp;amp; TWO include whatever data set is in INPUT. So both will be included 5 observations.&lt;/P&gt;&lt;P&gt;After running IF statement it includes 3 more observations to ONE as per the condition, So ONE contain 8 observation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you execute without OUTPUT then answer will be 3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 06:36:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100268#M28164</guid>
      <dc:creator>SujataHiremath</dc:creator>
      <dc:date>2014-07-04T06:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100269#M28165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;would anyone, I was curious about the question.&amp;nbsp; I think if the code had an 'else if' instead of just output then the code would separate the dataset, as I would presume this is what you would want to do 'normally'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.one work.two;&lt;/P&gt;&lt;P&gt;set work.input;&lt;/P&gt;&lt;P&gt;if var1='A' then output work.one;&lt;/P&gt;&lt;P&gt;else output work.Two;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question would would there be a case that some one would use the original program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;marv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 19:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100269#M28165</guid>
      <dc:creator>bustergomez</dc:creator>
      <dc:date>2014-07-14T19:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100270#M28166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; That is one possible scenario, if the goal is to split the data based on the value of VAR1 so that ONLY the observations with VAR1=A are placed in WORK.ONE and the other obs are placed in WORK.TWO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; However, the point of the question was not for the student to rewrite the question or recast it into a different question. The question gives the code. No matter how improbably you think the example is, the question has a point that is based on how SAS Syntax works. The question, based on the way the code was originally written, asks the student to figure out how many observations would be in WORK.ONE. The correct answer was 8. The question is designed to test whether the student understands how the explicit OUTPUT statement works. A frequent beginner mistake is failing to code the ELSE because they do NOT understand how the explicit OUTPUT statement works. And the consequences of not understanding how the explicit OUTPUT statement works is to get the "unexpected" number of observations in one or more than one of the output datasets. If you understand HOW the explicit OUTPUT statements works, then you will understand WHY the correct answer is 8, and so, you will always be able to answer a question like this correctly. The fact you understand that a well placed ELSE might help you out in this instance is great, but on the exam, you have to answer the question you are asked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 00:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100270#M28166</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-07-16T00:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100271#M28167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Cynthia,&lt;/P&gt;&lt;P&gt;Makes sense, I've been studying for SAS certification and I agree, many of the question are the way you described.&amp;nbsp; It's extremely helpful just studying the material in this way as I get tons of 'Ah, that's how that works' moments when I encounter code that otherwise would not make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also just wanted to say Cynthia you do a great job answering all of our SAS questions, you must be on your millionth question!&lt;/P&gt;&lt;P&gt;I don't know how you do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 01:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100271#M28167</guid>
      <dc:creator>bustergomez</dc:creator>
      <dc:date>2014-07-16T01:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100272#M28168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like these questions are like those on most standardized tests, you should pick the BEST answer. Using the Sherlock Holmes method helps (if you eliminate the impossible ...)&lt;/P&gt;&lt;P&gt;That is don't get too nit-picky.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case you can eliminate three of the answers as being clearly wrong. &lt;/P&gt;&lt;P&gt;A Would just cause SAS to automatically convert characters values to numeric values.&lt;/P&gt;&lt;P&gt;B Is just nonsense because this data step is defining the data set GT100.&lt;/P&gt;&lt;P&gt;D Is very poorly worded as what do they mean by defining LOAD in the context of this simple data step?&amp;nbsp; The most normal meaning is say that they mean you should have defined it via a LENGTH or ATTRIB statement before referencing it in the KEEP= option of the SET statement?&amp;nbsp; But no matter how you interpret the meaning of this choice SAS does NOT require you to pre-define variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you are left with C as the BEST answer.&amp;nbsp; That one is only wrong if you know that the option DKRICOND is set to WARN instead of ERROR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 03:50:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100272#M28168</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-07-16T03:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100273#M28169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Right now you got resolved current question but actual question in SAS BASE CERTIFICATION will be more tougher. Actually A00-201 series dumps will available but examination will series A00-211. Don't get confused. After better preparation only go for examination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sujata&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 06:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100273#M28169</guid>
      <dc:creator>SujataHiremath</dc:creator>
      <dc:date>2014-07-17T06:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100274#M28170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been following your explanations and it helped me a lot. I am going to write my SAS base exam very soon but have some doubts. So if you can clear one of them that would help me a lot. see the following question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data allobs;&lt;/P&gt;&lt;P&gt;set sasdata.banks;&lt;/P&gt;&lt;P&gt;capitaI=0;&lt;/P&gt;&lt;P&gt;do year = 2000 to 2020 by 5;&lt;/P&gt;&lt;P&gt;capital + ((capital+2000) * rate);&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;How many observations will the ALLOBS data set contain?&lt;/P&gt;&lt;P&gt;A. 5&lt;/P&gt;&lt;P&gt;B. 15&lt;/P&gt;&lt;P&gt;C. 20&lt;/P&gt;&lt;P&gt;D. 25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the answer but want to know the exact explanation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Nov 2014 10:41:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100274#M28170</guid>
      <dc:creator>himzi_SAS</dc:creator>
      <dc:date>2014-11-01T10:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Base SAS certification exam question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100275#M28171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You did not provide enough information to answer the question.&amp;nbsp; How many observations are in the input data set?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Nov 2014 14:18:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Base-SAS-certification-exam-question/m-p/100275#M28171</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-11-01T14:18:57Z</dc:date>
    </item>
  </channel>
</rss>

