<?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: Practice Exam for Base Programming in SAS Certification</title>
    <link>https://communities.sas.com/t5/SAS-Certification/Practice-Exam-for-Base-Programming/m-p/774736#M1216</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308996"&gt;@pmbrown&lt;/a&gt;&amp;nbsp;You are right. We will need to clean up the input data sets to dedup the ID variables.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 17 Oct 2021 15:24:02 GMT</pubDate>
    <dc:creator>Mark2010</dc:creator>
    <dc:date>2021-10-17T15:24:02Z</dc:date>
    <item>
      <title>Practice Exam for Base Programming</title>
      <link>https://communities.sas.com/t5/SAS-Certification/Practice-Exam-for-Base-Programming/m-p/774718#M1215</link>
      <description>&lt;P&gt;regarding the following Q:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;This project will use data set cert.input08a and cert.input08b. ... Both data sets contain a common numeric variable named ID. Write a program that will use a SAS DATA Step to:&lt;BR /&gt;◦ Combine data sets cert.input08a and cert.input08b by matching values of the ID variable.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;the answer is given as:&lt;/P&gt;
&lt;PRE&gt;proc sort data=cert.input08a out=work.input08a;
by ID;
run;
proc sort data=cert.input08b out=work.input08b;
by ID;
run;
data results.match08 results.nomatch08 (drop=ex: );
merge work.input08a (in=a) work.input08b (in=b);
by ID;
if a and b then output results.match08;
else output results.nomatch08;
run;
&lt;/PRE&gt;
&lt;P&gt;but this would lead to a note in the log: 'merge statement has more than one data set with repeats of BY variables'&lt;/P&gt;
&lt;P&gt;for this reason i would use nodupkey on the sort and it feels to me that the Q is urging a mistake from the programmer - they should be very worried about this note and such a log would not be regarded as 'clean'. Am i right?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Oct 2021 12:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/Practice-Exam-for-Base-Programming/m-p/774718#M1215</guid>
      <dc:creator>pmbrown</dc:creator>
      <dc:date>2021-10-17T12:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Practice Exam for Base Programming</title>
      <link>https://communities.sas.com/t5/SAS-Certification/Practice-Exam-for-Base-Programming/m-p/774736#M1216</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/308996"&gt;@pmbrown&lt;/a&gt;&amp;nbsp;You are right. We will need to clean up the input data sets to dedup the ID variables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Oct 2021 15:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/Practice-Exam-for-Base-Programming/m-p/774736#M1216</guid>
      <dc:creator>Mark2010</dc:creator>
      <dc:date>2021-10-17T15:24:02Z</dc:date>
    </item>
  </channel>
</rss>

