<?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: do loops - augmenting numbers in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/do-loops-augmenting-numbers/m-p/889386#M351384</link>
    <description>&lt;P&gt;Is the output one variable? Is it numeric or character? Maximum of 5 or how many rows? (Will severely limit whether the value is numeric or not&lt;/P&gt;
&lt;P&gt;This makes a character value with that appearance.&lt;/P&gt;
&lt;PRE&gt;data example;
   length var $ 25;
   do levels = 1 to 5;
      call missing(var);
      do j=1 to levels;
         var=cats(var,j);
      end;
      do j=(levels-1) to 1 by (-1);
         var=cats(var,j);
      end;
      output;
   end;
   drop levels j;
run;&lt;/PRE&gt;</description>
    <pubDate>Tue, 15 Aug 2023 16:37:26 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-08-15T16:37:26Z</dc:date>
    <item>
      <title>do loops - augmenting numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loops-augmenting-numbers/m-p/889113#M351256</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have attempted various methods, but I have been unable to obtain the desired output.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Using do loops&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need output like following;&amp;nbsp;&lt;BR /&gt;1&lt;BR /&gt;121&lt;BR /&gt;12321&lt;BR /&gt;1234321&lt;BR /&gt;123454321&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 14:46:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loops-augmenting-numbers/m-p/889113#M351256</guid>
      <dc:creator>112211</dc:creator>
      <dc:date>2023-08-15T14:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: doloops</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loops-augmenting-numbers/m-p/889117#M351259</link>
      <description>&lt;P&gt;Please show us what you tried, so we can suggest ways to improve/correct your code.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Aug 2023 18:04:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loops-augmenting-numbers/m-p/889117#M351259</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-08-13T18:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: do loops - augmenting numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loops-augmenting-numbers/m-p/889362#M351375</link>
      <description>Is this some kind of training assignment?&lt;BR /&gt;The task doesn't reflect what you normally do using SAS...</description>
      <pubDate>Tue, 15 Aug 2023 14:48:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loops-augmenting-numbers/m-p/889362#M351375</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-08-15T14:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: do loops - augmenting numbers</title>
      <link>https://communities.sas.com/t5/SAS-Programming/do-loops-augmenting-numbers/m-p/889386#M351384</link>
      <description>&lt;P&gt;Is the output one variable? Is it numeric or character? Maximum of 5 or how many rows? (Will severely limit whether the value is numeric or not&lt;/P&gt;
&lt;P&gt;This makes a character value with that appearance.&lt;/P&gt;
&lt;PRE&gt;data example;
   length var $ 25;
   do levels = 1 to 5;
      call missing(var);
      do j=1 to levels;
         var=cats(var,j);
      end;
      do j=(levels-1) to 1 by (-1);
         var=cats(var,j);
      end;
      output;
   end;
   drop levels j;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Aug 2023 16:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/do-loops-augmenting-numbers/m-p/889386#M351384</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-15T16:37:26Z</dc:date>
    </item>
  </channel>
</rss>

