<?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: Generate sequence number  by each group in proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Generate-sequence-number-by-each-group-in-proc-sql/m-p/745523#M233705</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cnt;
set ds;
by Age;
retain count;
if first.Age then count=1;
else count+1;
proc print ; run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How to get same output using proc sql&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You don't. The proper tool for this is the data step, so you use it.&lt;/P&gt;
&lt;P&gt;You are much better off spending your brain cycles on learning how to deal with real-life issues, instead of wasting them on things that you will never encounter in a professional SAS life.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jun 2021 15:54:18 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-06-03T15:54:18Z</dc:date>
    <item>
      <title>Generate sequence number  by each group in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generate-sequence-number-by-each-group-in-proc-sql/m-p/745482#M233678</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cnt;
set ds;
by Age;
retain count;
if first.Age then count=1;
else count+1;
proc print ; run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How to get same output using proc sql&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 14:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generate-sequence-number-by-each-group-in-proc-sql/m-p/745482#M233678</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2021-06-03T14:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Generate sequence number  by each group in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Generate-sequence-number-by-each-group-in-proc-sql/m-p/745523#M233705</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cnt;
set ds;
by Age;
retain count;
if first.Age then count=1;
else count+1;
proc print ; run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;How to get same output using proc sql&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You don't. The proper tool for this is the data step, so you use it.&lt;/P&gt;
&lt;P&gt;You are much better off spending your brain cycles on learning how to deal with real-life issues, instead of wasting them on things that you will never encounter in a professional SAS life.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 15:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Generate-sequence-number-by-each-group-in-proc-sql/m-p/745523#M233705</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-03T15:54:18Z</dc:date>
    </item>
  </channel>
</rss>

