<?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: SAS matching in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-matching/m-p/346416#M79891</link>
    <description>&lt;P&gt;I will appreciate the dataset code,&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Apr 2017 17:31:37 GMT</pubDate>
    <dc:creator>Oluwole</dc:creator>
    <dc:date>2017-04-01T17:31:37Z</dc:date>
    <item>
      <title>SAS matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-matching/m-p/346408#M79887</link>
      <description>&lt;P&gt;I recreated a one to one match&amp;nbsp;using the PROC SURVEYSELECT. I have the final match dataset with only 4 variables inclduing matchID in the dataset.&lt;/P&gt;&lt;P&gt;How do I relate this to the original dataset from where the cases and control were selected so I can work on the matched data?&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 16:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-matching/m-p/346408#M79887</guid>
      <dc:creator>Oluwole</dc:creator>
      <dc:date>2017-04-01T16:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-matching/m-p/346409#M79888</link>
      <description>&lt;P&gt;Would help if you provide example have and want datasets in the form of data step code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 16:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-matching/m-p/346409#M79888</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-04-01T16:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-matching/m-p/346415#M79890</link>
      <description />
      <pubDate>Sun, 02 Apr 2017 15:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-matching/m-p/346415#M79890</guid>
      <dc:creator>Oluwole</dc:creator>
      <dc:date>2017-04-02T15:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-matching/m-p/346416#M79891</link>
      <description>&lt;P&gt;I will appreciate the dataset code,&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 17:31:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-matching/m-p/346416#M79891</guid>
      <dc:creator>Oluwole</dc:creator>
      <dc:date>2017-04-01T17:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-matching/m-p/346423#M79894</link>
      <description>&lt;P&gt;You need to merge/join the two datasets in to the SurveySelect output.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll need to rename the variables so you can identify the match/control records. This assumes you have different datasets with your control and match data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc sql;

Create table matched as 

Select a.* /*first set of records Control dataset*/
B.id as match_id, b.name as match_name, .... etc, /* Match dataset, rename variables because variables cannot have the same name*/
Ss.index /*Include the variable index from the SurveySelect data*/

From SurveySelect as ss /*Match/Control dataset shown*/

Left join control as a /*Get information from control dataset, match on ID*/
On ss.control_id = a.id

Left join match as b  /*Merge information from the match dataset, match on ID*/
On ss.match_id = b.id;

Quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 Apr 2017 19:30:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-matching/m-p/346423#M79894</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-02T19:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-matching/m-p/346724#M79982</link>
      <description>&lt;P&gt;For future use you can use the option OUTALL on the Proc Surveyselect statement. This will add a variable SELECTED to the output set that will have a 1 for the selected records and 0 for the non-selected.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 15:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-matching/m-p/346724#M79982</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-03T15:41:22Z</dc:date>
    </item>
  </channel>
</rss>

