<?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: How to assign group wise sequence for particular range in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-group-wise-sequence-for-particular-range/m-p/565130#M158611</link>
    <description>Yes it's working&lt;BR /&gt;</description>
    <pubDate>Tue, 11 Jun 2019 07:29:15 GMT</pubDate>
    <dc:creator>thanikondharish</dc:creator>
    <dc:date>2019-06-11T07:29:15Z</dc:date>
    <item>
      <title>How to assign group wise sequence for particular range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-group-wise-sequence-for-particular-range/m-p/565124#M158605</link>
      <description>Data ex1;&lt;BR /&gt;Input number ;&lt;BR /&gt;Cards;&lt;BR /&gt;3&lt;BR /&gt;9&lt;BR /&gt;22&lt;BR /&gt;34&lt;BR /&gt;49&lt;BR /&gt;3&lt;BR /&gt;33&lt;BR /&gt;50&lt;BR /&gt;12&lt;BR /&gt;23&lt;BR /&gt;34&lt;BR /&gt;48&lt;BR /&gt;;&lt;BR /&gt;If we take range 50 how to create sequence number 50 group wise like see below&lt;BR /&gt;&lt;BR /&gt;Number seq&lt;BR /&gt;&lt;BR /&gt;3. 1&lt;BR /&gt;9. 1&lt;BR /&gt;22. 1&lt;BR /&gt;34. 1&lt;BR /&gt;49. 1&lt;BR /&gt;3. 2&lt;BR /&gt;33. 2&lt;BR /&gt;50. 2&lt;BR /&gt;12. 3&lt;BR /&gt;23. 3&lt;BR /&gt;34. 3&lt;BR /&gt;48. 3&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jun 2019 07:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-group-wise-sequence-for-particular-range/m-p/565124#M158605</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-06-11T07:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign group wise sequence for particular range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-group-wise-sequence-for-particular-range/m-p/565125#M158606</link>
      <description>&lt;P&gt;What if a value was over 50? What if your data looks like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data ex1;
Input number ;
Cards;
3
9
22
34
49
3
33
50
51
12
23
34
48
;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jun 2019 07:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-group-wise-sequence-for-particular-range/m-p/565125#M158606</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-06-11T07:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign group wise sequence for particular range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-group-wise-sequence-for-particular-range/m-p/565127#M158608</link>
      <description>More than 50 value is .(missing)&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jun 2019 07:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-group-wise-sequence-for-particular-range/m-p/565127#M158608</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-06-11T07:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign group wise sequence for particular range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-group-wise-sequence-for-particular-range/m-p/565128#M158609</link>
      <description>&lt;P&gt;See if this works for you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ex2(drop=lagnum);
    set ex1;
    if _N_=1 then seq=1;
    lagnum=lag1(number);
    if lagnum gt number then seq+1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jun 2019 07:23:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-group-wise-sequence-for-particular-range/m-p/565128#M158609</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-06-11T07:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign group wise sequence for particular range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-assign-group-wise-sequence-for-particular-range/m-p/565130#M158611</link>
      <description>Yes it's working&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jun 2019 07:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-assign-group-wise-sequence-for-particular-range/m-p/565130#M158611</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-06-11T07:29:15Z</dc:date>
    </item>
  </channel>
</rss>

