<?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: Find the same obs with Different months in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Find-the-same-obs-with-Different-months/m-p/30159#M7117</link>
    <description>The SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website has a wealth of SAS-hosted product documentation and also technical / conference contributed papers on these type of topics - some links pasted below for your reference and use:&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Working with Dates in the SAS System&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001304321.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001304321.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
How the DATA Step Identifies BY Groups&lt;BR /&gt;
&lt;BR /&gt;
Processing Observations in a BY Group &lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000761931.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000761931.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
A Hands-On Introduction to SAS® DATA Step Programming&lt;BR /&gt;
Debbie Buck, D. B. &amp;amp; P. Associates, Houston, TX&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/134-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/134-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
SAS 9.2 DOC - Data Step Processing:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a001281588.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a001281588.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Processing a DATA Step: A Walkthrough&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000961108.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000961108.htm&lt;/A&gt;</description>
    <pubDate>Mon, 11 May 2009 15:30:41 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-05-11T15:30:41Z</dc:date>
    <item>
      <title>Find the same obs with Different months</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Find-the-same-obs-with-Different-months/m-p/30156#M7114</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data cus_mon;&lt;BR /&gt;
input cus mon$ emi;&lt;BR /&gt;
cards;&lt;BR /&gt;
1 jan 20&lt;BR /&gt;
2 jan 10&lt;BR /&gt;
3 jan 20&lt;BR /&gt;
1 feb 20&lt;BR /&gt;
2 feb 20&lt;BR /&gt;
3 feb 10&lt;BR /&gt;
1 mar 20&lt;BR /&gt;
2 mar 20&lt;BR /&gt;
3 mar 20&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
i want the no of customers paying the emi same amount in the months jan,feb and mar in this Dataset cusomer 1 is paying the same emi in all the three months like this i want the count of .No of customers paying the same amount in all the three months .&lt;BR /&gt;
&lt;BR /&gt;
I am having 30,000 obs i sholud find this from that obs</description>
      <pubDate>Mon, 11 May 2009 08:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Find-the-same-obs-with-Different-months/m-p/30156#M7114</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-11T08:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Find the same obs with Different months</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Find-the-same-obs-with-Different-months/m-p/30157#M7115</link>
      <description>sql or data step?</description>
      <pubDate>Mon, 11 May 2009 12:03:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Find-the-same-obs-with-Different-months/m-p/30157#M7115</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-05-11T12:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Find the same obs with Different months</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Find-the-same-obs-with-Different-months/m-p/30158#M7116</link>
      <description>One suggestion is that you appear to be working with "character string" date-related data values (without a year supplied in the input) -- convert these to SAS numeric DATE type variables using the INPUT function in a SAS assignment statement - a DATA step approach likely, possibly assigning the current year using the YEAR( TODAY() )  functions.  Then you can use the MONTH(&lt;VARNAME&gt;) if you need to reference one or more months as a logical group in your IF / THEN  variable assignment logic.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;/VARNAME&gt;</description>
      <pubDate>Mon, 11 May 2009 15:22:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Find-the-same-obs-with-Different-months/m-p/30158#M7116</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-11T15:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Find the same obs with Different months</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Find-the-same-obs-with-Different-months/m-p/30159#M7117</link>
      <description>The SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website has a wealth of SAS-hosted product documentation and also technical / conference contributed papers on these type of topics - some links pasted below for your reference and use:&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Working with Dates in the SAS System&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001304321.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001304321.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
How the DATA Step Identifies BY Groups&lt;BR /&gt;
&lt;BR /&gt;
Processing Observations in a BY Group &lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000761931.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000761931.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
A Hands-On Introduction to SAS® DATA Step Programming&lt;BR /&gt;
Debbie Buck, D. B. &amp;amp; P. Associates, Houston, TX&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/134-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/134-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
SAS 9.2 DOC - Data Step Processing:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a001281588.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a001281588.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Processing a DATA Step: A Walkthrough&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000961108.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000961108.htm&lt;/A&gt;</description>
      <pubDate>Mon, 11 May 2009 15:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Find-the-same-obs-with-Different-months/m-p/30159#M7117</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-11T15:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Find the same obs with Different months</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Find-the-same-obs-with-Different-months/m-p/30160#M7118</link>
      <description>In DATA step</description>
      <pubDate>Tue, 12 May 2009 05:03:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Find-the-same-obs-with-Different-months/m-p/30160#M7118</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-12T05:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Find the same obs with Different months</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Find-the-same-obs-with-Different-months/m-p/30161#M7119</link>
      <description>since the chain is over only 3 months, it seems OK just to merge the 3 separate months and, if the amounts (emi) are the same, create a counter[pre]data counting( keep= cus emi1 ) ; &lt;BR /&gt;
   merge cus_mon( in=jan rename=( mon= mon1 emi= emi1 ) where=( mon1= 'jan'))&lt;BR /&gt;
         cus_mon( in=feb rename=( mon= mon2 emi= emi2 ) where=( mon2= 'feb'))&lt;BR /&gt;
         cus_mon( in=mar rename=( mon= mon3 emi= emi3 ) where=( mon3= 'mar') )&lt;BR /&gt;
        ;&lt;BR /&gt;
      by cus ;&lt;BR /&gt;
   if jan and feb and mar and&lt;BR /&gt;
     emi1= emi2 and emi2=emi3 then output ;&lt;BR /&gt;
run ;&lt;BR /&gt;
proc print ;&lt;BR /&gt;
run ; [/pre]&lt;BR /&gt;
The count is the number of observations output to table COUNTING.&lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
      <pubDate>Tue, 12 May 2009 12:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Find-the-same-obs-with-Different-months/m-p/30161#M7119</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-05-12T12:08:48Z</dc:date>
    </item>
  </channel>
</rss>

