<?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 should I add an ID variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-should-I-add-an-ID-variable/m-p/693869#M211591</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
 set have curobs=n;
 if mod(n,250)=1 then id+1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 23 Oct 2020 18:59:40 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2020-10-23T18:59:40Z</dc:date>
    <item>
      <title>How should I add an ID variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-should-I-add-an-ID-variable/m-p/693868#M211590</link>
      <description>&lt;P&gt;I have a large dataset. I want to add an ID variable in the data.&amp;nbsp; For every 250 rows, I want them to have the same ID. that is, for the first 250 rows, I want ID=1; the next 250 rows, I want ID=2; then then next 250 rows, ID=3; etc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's the efficient SAS code to help me do that?&lt;/P&gt;
&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 18:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-should-I-add-an-ID-variable/m-p/693868#M211590</guid>
      <dc:creator>superbug</dc:creator>
      <dc:date>2020-10-23T18:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: How should I add an ID variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-should-I-add-an-ID-variable/m-p/693869#M211591</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
 set have curobs=n;
 if mod(n,250)=1 then id+1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Oct 2020 18:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-should-I-add-an-ID-variable/m-p/693869#M211591</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-10-23T18:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: How should I add an ID variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-should-I-add-an-ID-variable/m-p/693895#M211593</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks much!&lt;/P&gt;
&lt;P&gt;You are always so helpful!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2020 19:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-should-I-add-an-ID-variable/m-p/693895#M211593</guid>
      <dc:creator>superbug</dc:creator>
      <dc:date>2020-10-23T19:04:47Z</dc:date>
    </item>
  </channel>
</rss>

