<?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: data management creating one row per each id for different variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-management-creating-one-row-per-each-id-for-different/m-p/400165#M97008</link>
    <description>&lt;P&gt;Take the max of every column by ID.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use SQL, PROC MEANS/SUMMARY/UNIVARIATE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 01 Oct 2017 21:30:02 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-10-01T21:30:02Z</dc:date>
    <item>
      <title>data management creating one row per each id for different variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-management-creating-one-row-per-each-id-for-different/m-p/400161#M97007</link>
      <description>&lt;P&gt;I have the following data;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;id date  dx         a b c d e f g
1   1/1/2005 4    1 0 0 0 0 0 0
1   2/2/2005  5    0 0 0 0 0 0  0
1    3/3/2006  3    0 1 0 0 0 0 0 
2    1/2/2005  4    1 0 0 0 0 0 0 
2    2/3/2008   2    0 0 0 0 0 0 0 
2    3/3/2005   3    0 1 0 0 0 0 0
2    3/3/2005   6    0 0 0 0 1 0 0 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the output I want&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;id   a b c d e f g
1    1 1 0 0 0 0 0
2     1 1 0 0 1 0 0 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;so if the id has any (1) then output 1 for that variable regardless of the date if none then zero.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2017 21:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-management-creating-one-row-per-each-id-for-different/m-p/400161#M97007</guid>
      <dc:creator>lillymaginta</dc:creator>
      <dc:date>2017-10-01T21:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: data management creating one row per each id for different variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-management-creating-one-row-per-each-id-for-different/m-p/400165#M97008</link>
      <description>&lt;P&gt;Take the max of every column by ID.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use SQL, PROC MEANS/SUMMARY/UNIVARIATE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2017 21:30:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-management-creating-one-row-per-each-id-for-different/m-p/400165#M97008</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-01T21:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: data management creating one row per each id for different variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-management-creating-one-row-per-each-id-for-different/m-p/400168#M97010</link>
      <description>&lt;P&gt;perfect! I have not thought about this way, thanks Reeza!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2017 21:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-management-creating-one-row-per-each-id-for-different/m-p/400168#M97010</guid>
      <dc:creator>lillymaginta</dc:creator>
      <dc:date>2017-10-01T21:39:44Z</dc:date>
    </item>
  </channel>
</rss>

