<?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 SAS 9.4 Base Programming trial examination (Question 3 &amp;amp; 5) in SAS Certification</title>
    <link>https://communities.sas.com/t5/SAS-Certification/SAS-9-4-Base-Programming-trial-examination-Question-3-amp-5/m-p/737089#M1134</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding "SAS 9.4 Base Programming Performance-Based Exam" practice examination, I have the following code which produces the same result as the solution code which SAS provided:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;libname results "....../Cert/output";&lt;BR /&gt;Proc sort data=cert.input08a out=sorted_08a;&lt;BR /&gt;by ID;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sort data=cert.input08b out=sorted_08b;&lt;BR /&gt;by ID;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data results.match08 results.nomatch08(drop=ex: );&lt;BR /&gt;merge sorted_08a(in=a8) sorted_08b(in=b8);&lt;BR /&gt;&amp;nbsp; by ID;&lt;BR /&gt;&amp;nbsp; if a8 and b8 then output results.match08;&lt;BR /&gt;&amp;nbsp; else output results.nomatch08;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, to answer question 3 ("&lt;SPAN&gt;How many observations (rows) are in&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;results.match08&lt;/STRONG&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;) and 5 ("&lt;SPAN&gt;How many observations (rows) are in&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;results.nomatch08&lt;/STRONG&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;"), I got 51 for the former, and for the later,&amp;nbsp;&lt;SPAN&gt;1151. More so, the provided solution gave the same results as the referenced figures. However, 1200 and a 2 where given in the solutions as the right answers. I have read through the log and the contents which resulted from the proc procedure but couldn't deduce how the figures where derived.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I should be most grateful for your insights.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Apr 2021 19:10:08 GMT</pubDate>
    <dc:creator>Zacc</dc:creator>
    <dc:date>2021-04-26T19:10:08Z</dc:date>
    <item>
      <title>SAS 9.4 Base Programming trial examination (Question 3 &amp; 5)</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-9-4-Base-Programming-trial-examination-Question-3-amp-5/m-p/737089#M1134</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding "SAS 9.4 Base Programming Performance-Based Exam" practice examination, I have the following code which produces the same result as the solution code which SAS provided:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;libname results "....../Cert/output";&lt;BR /&gt;Proc sort data=cert.input08a out=sorted_08a;&lt;BR /&gt;by ID;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sort data=cert.input08b out=sorted_08b;&lt;BR /&gt;by ID;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data results.match08 results.nomatch08(drop=ex: );&lt;BR /&gt;merge sorted_08a(in=a8) sorted_08b(in=b8);&lt;BR /&gt;&amp;nbsp; by ID;&lt;BR /&gt;&amp;nbsp; if a8 and b8 then output results.match08;&lt;BR /&gt;&amp;nbsp; else output results.nomatch08;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, to answer question 3 ("&lt;SPAN&gt;How many observations (rows) are in&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;results.match08&lt;/STRONG&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;) and 5 ("&lt;SPAN&gt;How many observations (rows) are in&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;results.nomatch08&lt;/STRONG&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;"), I got 51 for the former, and for the later,&amp;nbsp;&lt;SPAN&gt;1151. More so, the provided solution gave the same results as the referenced figures. However, 1200 and a 2 where given in the solutions as the right answers. I have read through the log and the contents which resulted from the proc procedure but couldn't deduce how the figures where derived.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I should be most grateful for your insights.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 19:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-9-4-Base-Programming-trial-examination-Question-3-amp-5/m-p/737089#M1134</guid>
      <dc:creator>Zacc</dc:creator>
      <dc:date>2021-04-26T19:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 Base Programming trial examination (Question 3 &amp; 5)</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-9-4-Base-Programming-trial-examination-Question-3-amp-5/m-p/737102#M1135</link>
      <description>&lt;P&gt;No data, no code to compare, no actual example of the supposed solution: No answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You really need to provide a link or the exact version of the trial exam. Sometimes test questions get updated and answer keys don't. Some sources of "practice examinations" don't have very good quality control. Without knowing ever detail of exactly which one this is a dart board.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 20:26:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-9-4-Base-Programming-trial-examination-Question-3-amp-5/m-p/737102#M1135</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-04-26T20:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 Base Programming trial examination (Question 3 &amp; 5)</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-9-4-Base-Programming-trial-examination-Question-3-amp-5/m-p/737113#M1136</link>
      <description>&lt;P&gt;My apologies, here are the corresponding links:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to the exam question:&amp;nbsp;&lt;A href="https://vle.sas.com/mod/quiz/attempt.php?attempt=282358&amp;amp;cmid=82041&amp;amp;page=6" target="_blank"&gt;https://vle.sas.com/mod/quiz/attempt.php?attempt=282358&amp;amp;cmid=82041&amp;amp;page=6&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Write a program that will use a SAS DATA Step to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;Combine data sets&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;cert.input08a&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;cert.input08b&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;by matching values of the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;variable.&lt;/LI&gt;&lt;LI&gt;Write only observations that are in both data sets to a new data set named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;results.match08&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Write all other non-matching observations from either data set to a new data set named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;results.nomatch08&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Exclude all variables that begin with "&lt;STRONG&gt;ex"&lt;/STRONG&gt;&amp;nbsp;from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;results.nomatch08&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Run the program and use the results to answer the next 4 questions.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to the corresponding solutions as provided by SAS:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Q3.JPG" style="width: 522px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58707i29763A7B2208C121/image-size/large?v=v2&amp;amp;px=999" role="button" title="Q3.JPG" alt="Q3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Answer: 1200&lt;BR /&gt;&lt;BR /&gt;SAS code that could be used to solve this project:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;proc sort data=cert.input08a out=work.input08a;
&amp;nbsp; by ID;
run;&lt;BR /&gt;
proc sort data=cert.input08b out=work.input08b;
&amp;nbsp; by ID;
run;&lt;BR /&gt;
data results.match08 results.nomatch08 (drop=ex: );
&amp;nbsp; merge work.input08a (in=a) work.input08b (in=b);
&amp;nbsp; by ID;
&amp;nbsp; if a and b then output results.match08;
&amp;nbsp; else output results.nomatch08;
run;&lt;BR /&gt;
proc contents data=results.match08;
run;&lt;BR /&gt;
proc contents data=results.nomatch08;
run;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Q5.JPG" style="width: 541px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58708iD527943A3E329E0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Q5.JPG" alt="Q5.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 20:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-9-4-Base-Programming-trial-examination-Question-3-amp-5/m-p/737113#M1136</guid>
      <dc:creator>Zacc</dc:creator>
      <dc:date>2021-04-26T20:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 Base Programming trial examination (Question 3 &amp; 5)</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-9-4-Base-Programming-trial-examination-Question-3-amp-5/m-p/737268#M1137</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/352245"&gt;@Zacc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI (The link in your post is unique to you and no one else will be able to access it.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I attempted to duplicate your result with my copy of the practice exam, and I was unable to get your answers. I obtained the same answers as the practice exam key. If your code matches the solution code, then I think it is possible that the input data sets that you are using have been corrupted and you may want to download them again to see if it makes a difference. (Also, this is why the source data sets are read-only protected in the actual certification exam: to prevent this type of corruption from affecting a candidate's exam)&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 13:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-9-4-Base-Programming-trial-examination-Question-3-amp-5/m-p/737268#M1137</guid>
      <dc:creator>Mark2010</dc:creator>
      <dc:date>2021-04-27T13:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 Base Programming trial examination (Question 3 &amp; 5)</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-9-4-Base-Programming-trial-examination-Question-3-amp-5/m-p/737412#M1138</link>
      <description>&lt;P&gt;Thank you so very much&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/38931"&gt;@Mark2010&lt;/a&gt;&amp;nbsp;for your insight. Indeed, the input data sets which I used were the culprit. After a new upload, I finally obtained the same answers as those provided in the practice key.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;once again, thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 20:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-9-4-Base-Programming-trial-examination-Question-3-amp-5/m-p/737412#M1138</guid>
      <dc:creator>Zacc</dc:creator>
      <dc:date>2021-04-27T20:26:39Z</dc:date>
    </item>
  </channel>
</rss>

