<?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 matching with control firms with some conditions. in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/matching-with-control-firms-with-some-conditions/m-p/235950#M6053</link>
    <description>&lt;P&gt;I am having a new problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My imaginary data&amp;amp;colon;&lt;/P&gt;&lt;P&gt;Sample firms:&lt;/P&gt;&lt;P&gt;yr &amp;nbsp; &amp;nbsp; &amp;nbsp; tick sic &amp;nbsp;asset&lt;/P&gt;&lt;P&gt;2011 AB 20 2000&lt;BR /&gt;2011 BC 21 3000&lt;BR /&gt;2011 CD 22 4000&lt;BR /&gt;2011 DE 23 5000&lt;BR /&gt;2011 EF 24 6000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Control firms:&lt;/P&gt;&lt;P&gt;yr &amp;nbsp; &amp;nbsp; &amp;nbsp; tick sic &amp;nbsp;asset&lt;/P&gt;&lt;P&gt;2011 DE 20 900&lt;BR /&gt;2011 XS 24 3300&lt;BR /&gt;2011 SA 23 2600&lt;BR /&gt;2011 FR 22 2000&lt;/P&gt;&lt;P&gt;2011 TH 22 1500&lt;/P&gt;&lt;P&gt;2011 YU 23 2500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question:&lt;/P&gt;&lt;P&gt;I want to match firms on the basis of sic and asset. My condition is sample firms' asset may be 50% of control firms or vice verse. WHat should be my coding?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Nov 2015 09:14:37 GMT</pubDate>
    <dc:creator>nzrdufiu</dc:creator>
    <dc:date>2015-11-23T09:14:37Z</dc:date>
    <item>
      <title>matching with control firms with some conditions.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/matching-with-control-firms-with-some-conditions/m-p/235950#M6053</link>
      <description>&lt;P&gt;I am having a new problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My imaginary data&amp;amp;colon;&lt;/P&gt;&lt;P&gt;Sample firms:&lt;/P&gt;&lt;P&gt;yr &amp;nbsp; &amp;nbsp; &amp;nbsp; tick sic &amp;nbsp;asset&lt;/P&gt;&lt;P&gt;2011 AB 20 2000&lt;BR /&gt;2011 BC 21 3000&lt;BR /&gt;2011 CD 22 4000&lt;BR /&gt;2011 DE 23 5000&lt;BR /&gt;2011 EF 24 6000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Control firms:&lt;/P&gt;&lt;P&gt;yr &amp;nbsp; &amp;nbsp; &amp;nbsp; tick sic &amp;nbsp;asset&lt;/P&gt;&lt;P&gt;2011 DE 20 900&lt;BR /&gt;2011 XS 24 3300&lt;BR /&gt;2011 SA 23 2600&lt;BR /&gt;2011 FR 22 2000&lt;/P&gt;&lt;P&gt;2011 TH 22 1500&lt;/P&gt;&lt;P&gt;2011 YU 23 2500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question:&lt;/P&gt;&lt;P&gt;I want to match firms on the basis of sic and asset. My condition is sample firms' asset may be 50% of control firms or vice verse. WHat should be my coding?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 09:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/matching-with-control-firms-with-some-conditions/m-p/235950#M6053</guid>
      <dc:creator>nzrdufiu</dc:creator>
      <dc:date>2015-11-23T09:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: matching with control firms with some conditions.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/matching-with-control-firms-with-some-conditions/m-p/235952#M6054</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You say nothing about what you want in the output dataset, what the linking variables should be, what you mean by "matching" etc. &amp;nbsp;You should be able to construct a simple SQL statement to do this, condition, you could have where (sample.asset /100)*50 &amp;lt;= control.asset &amp;lt;= (sample.asset/100)* 150.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Joins are (note these examples would need to be in a proc sql; quite; block):&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/916iB1154CB6891C99ED/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 09:30:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/matching-with-control-firms-with-some-conditions/m-p/235952#M6054</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-11-23T09:30:09Z</dc:date>
    </item>
  </channel>
</rss>

