<?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: Repeated characters in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Repeated-characters/m-p/687208#M208608</link>
    <description>&lt;P&gt;The REPEAT function has a quirk ... it starts with the first string, and then repeats it the number of times in the second parameter.&amp;nbsp; So the first value generated would be ** rather than *.&amp;nbsp; I imagine that a value of 0 for the second parameter is OK, and that the loop should go from 0 to 9999 instead of 1 to 10000.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:50:33 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2020-09-28T13:50:33Z</dc:date>
    <item>
      <title>Repeated characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeated-characters/m-p/687187#M208604</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;data ds1;&lt;/P&gt;
&lt;P&gt;infiledatalines;&lt;/P&gt;
&lt;P&gt;input star;&lt;/P&gt;
&lt;P&gt;cards;&lt;/P&gt;
&lt;P&gt;*&lt;/P&gt;
&lt;P&gt;**&lt;/P&gt;
&lt;P&gt;***&lt;/P&gt;
&lt;P&gt;****&lt;/P&gt;
&lt;P&gt;*****&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;how to create 10000 stars at a time by using sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:06:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeated-characters/m-p/687187#M208604</guid>
      <dc:creator>Saleem</dc:creator>
      <dc:date>2020-09-28T13:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Repeated characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeated-characters/m-p/687189#M208605</link>
      <description>&lt;P&gt;Please use descriptive subject lines in the future, so others do not need to do that for you. Using just "sas" (sic) in the&amp;nbsp;&lt;U&gt;SAS&lt;/U&gt; communities does not shine a positive light on a poster's intelligence.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your question:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want (compress=yes);
length stars $32767;
do i_n_= 1 to 10000;
  stars = repeat('*',_n_);
  output;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeated-characters/m-p/687189#M208605</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-28T13:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Repeated characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeated-characters/m-p/687208#M208608</link>
      <description>&lt;P&gt;The REPEAT function has a quirk ... it starts with the first string, and then repeats it the number of times in the second parameter.&amp;nbsp; So the first value generated would be ** rather than *.&amp;nbsp; I imagine that a value of 0 for the second parameter is OK, and that the loop should go from 0 to 9999 instead of 1 to 10000.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:50:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeated-characters/m-p/687208#M208608</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-09-28T13:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Repeated characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeated-characters/m-p/687224#M208612</link>
      <description>&lt;P&gt;I must admit that I just know that the function exists, but have never used it. And, to my shame, I did not mention the code is untested (I am on my tablet at the moment while watching NFL Gamepass).&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:43:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeated-characters/m-p/687224#M208612</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-28T14:43:24Z</dc:date>
    </item>
  </channel>
</rss>

