<?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: Create a new variable based on value of a specific observation in another variable in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Re-Create-a-new-variable-based-on-value-of-a-specific/m-p/145435#M2353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way to do this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select x1, y1 into :x2, :y2 from have&lt;BR /&gt;where group=2;&lt;BR /&gt;select x1, y1 into :x3, :y3 from have&lt;BR /&gt;where group=6;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;x2=&amp;amp;x2;&lt;BR /&gt;y2=&amp;amp;y2;&lt;BR /&gt;x3=&amp;amp;x3;&lt;BR /&gt;y3=&amp;amp;y3;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 May 2014 20:49:30 GMT</pubDate>
    <dc:creator>stat_sas</dc:creator>
    <dc:date>2014-05-05T20:49:30Z</dc:date>
    <item>
      <title>Re: Create a new variable based on value of a specific observation in another variable</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Re-Create-a-new-variable-based-on-value-of-a-specific/m-p/145435#M2353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way to do this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select x1, y1 into :x2, :y2 from have&lt;BR /&gt;where group=2;&lt;BR /&gt;select x1, y1 into :x3, :y3 from have&lt;BR /&gt;where group=6;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;x2=&amp;amp;x2;&lt;BR /&gt;y2=&amp;amp;y2;&lt;BR /&gt;x3=&amp;amp;x3;&lt;BR /&gt;y3=&amp;amp;y3;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 20:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Re-Create-a-new-variable-based-on-value-of-a-specific/m-p/145435#M2353</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-05-05T20:49:30Z</dc:date>
    </item>
  </channel>
</rss>

