<?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: Sort data for comparisons in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sort-data-for-comparisons/m-p/628146#M185555</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5629"&gt;@Q1983&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please show us the expected output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 08:34:06 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-02-28T08:34:06Z</dc:date>
    <item>
      <title>Sort data for comparisons</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sort-data-for-comparisons/m-p/628092#M185534</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; have;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;length&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; status &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;$25.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; status Month Current Past;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;return&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Current 2 1 0&lt;/P&gt;
&lt;P&gt;Current 3 1 0&lt;/P&gt;
&lt;P&gt;PastDue 2 0 1&lt;/P&gt;
&lt;P&gt;PastDue 3 0 1&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;I need to be able to compare the Current and PastDue numbers by Status and Month&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;As an example Current in Month 2 is 1 and I want to place it in the same row as PastDue in Month 2 which is a 0.&amp;nbsp; If I do a proc transpose the data will show in a diagnol due to the presence of 0 if there is no match&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 03:27:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sort-data-for-comparisons/m-p/628092#M185534</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2020-02-28T03:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sort data for comparisons</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sort-data-for-comparisons/m-p/628107#M185537</link>
      <description>&lt;P&gt;like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data WANT;
  merge HAVE(where=(STATUS='Current'))
        HAVE(where=(STATUS='PastDue') rename=(CURRENT=CUR2 PAST=PAST2));
  by MONTH;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 05:34:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sort-data-for-comparisons/m-p/628107#M185537</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-02-28T05:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sort data for comparisons</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sort-data-for-comparisons/m-p/628146#M185555</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5629"&gt;@Q1983&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please show us the expected output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 08:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sort-data-for-comparisons/m-p/628146#M185555</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-28T08:34:06Z</dc:date>
    </item>
  </channel>
</rss>

