<?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 Increment of Numeric Value after DDMMYYYY in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Increment-of-Numeric-Value-after-DDMMYYYY/m-p/344477#M79160</link>
    <description>&lt;P&gt;Can someone tell me how do I get the output as&amp;nbsp;'26MAR2017-0001' upto with an increment upto 1000?&lt;/P&gt;
&lt;P&gt;I was able to figure out how to get the&amp;nbsp;output as &lt;SPAN&gt;&amp;nbsp;'26MAR17-0001'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank You.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA want;
  DO _n_=1 TO 1000;
  x = "&amp;amp;SYSDATE"||'-'||PUT(_n_, z4.);
OUTPUT;
END;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2017 00:47:02 GMT</pubDate>
    <dc:creator>mlogan</dc:creator>
    <dc:date>2017-03-27T00:47:02Z</dc:date>
    <item>
      <title>Increment of Numeric Value after DDMMYYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Increment-of-Numeric-Value-after-DDMMYYYY/m-p/344477#M79160</link>
      <description>&lt;P&gt;Can someone tell me how do I get the output as&amp;nbsp;'26MAR2017-0001' upto with an increment upto 1000?&lt;/P&gt;
&lt;P&gt;I was able to figure out how to get the&amp;nbsp;output as &lt;SPAN&gt;&amp;nbsp;'26MAR17-0001'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank You.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA want;
  DO _n_=1 TO 1000;
  x = "&amp;amp;SYSDATE"||'-'||PUT(_n_, z4.);
OUTPUT;
END;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 00:47:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Increment-of-Numeric-Value-after-DDMMYYYY/m-p/344477#M79160</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2017-03-27T00:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Increment of Numeric Value after DDMMYYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Increment-of-Numeric-Value-after-DDMMYYYY/m-p/344478#M79161</link>
      <description>&lt;P&gt;Your code looks fine, try using a variable other than _n_, which is an automatic variable and trying to loop with it may confuse things.&lt;/P&gt;
&lt;P&gt;I would probably also use CATX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 00:53:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Increment-of-Numeric-Value-after-DDMMYYYY/m-p/344478#M79161</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-27T00:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Increment of Numeric Value after DDMMYYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Increment-of-Numeric-Value-after-DDMMYYYY/m-p/344484#M79167</link>
      <description>&lt;P&gt;&amp;amp;SYSDATE uses a two-digit year (as you have seen). &amp;nbsp;To get a four-digit year, switch to &amp;amp;SYSDATE9 instead.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 01:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Increment-of-Numeric-Value-after-DDMMYYYY/m-p/344484#M79167</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-03-27T01:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Increment of Numeric Value after DDMMYYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Increment-of-Numeric-Value-after-DDMMYYYY/m-p/344487#M79170</link>
      <description>Hi Reeza, How would you create 1000 observations without creating a loop? Can you please show me the code. Thanks.</description>
      <pubDate>Mon, 27 Mar 2017 01:45:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Increment-of-Numeric-Value-after-DDMMYYYY/m-p/344487#M79170</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2017-03-27T01:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Increment of Numeric Value after DDMMYYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Increment-of-Numeric-Value-after-DDMMYYYY/m-p/344490#M79171</link>
      <description>I got it! Thanks Reeza.</description>
      <pubDate>Mon, 27 Mar 2017 02:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Increment-of-Numeric-Value-after-DDMMYYYY/m-p/344490#M79171</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2017-03-27T02:03:10Z</dc:date>
    </item>
  </channel>
</rss>

