<?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 How do I generate repeated texts down an existing column? Example inside in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795726#M255255</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data have;
infile datalines dsd dlm=",";
  input name $;
datalines;
Programming,
,
,
Programming,
,
,
Programming,
,
,
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hi, How would I get it so the output looks like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ex:&lt;/P&gt;
&lt;P&gt;1. Programming&lt;/P&gt;
&lt;P&gt;2. Is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Cool&lt;/P&gt;
&lt;P&gt;4. Programming&lt;/P&gt;
&lt;P&gt;2. Is&lt;/P&gt;
&lt;P&gt;3. Cool&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 18:43:16 GMT</pubDate>
    <dc:creator>Hello_there</dc:creator>
    <dc:date>2022-02-11T18:43:16Z</dc:date>
    <item>
      <title>How do I generate repeated texts down an existing column? Example inside</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795726#M255255</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data have;
infile datalines dsd dlm=",";
  input name $;
datalines;
Programming,
,
,
Programming,
,
,
Programming,
,
,
;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hi, How would I get it so the output looks like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ex:&lt;/P&gt;
&lt;P&gt;1. Programming&lt;/P&gt;
&lt;P&gt;2. Is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Cool&lt;/P&gt;
&lt;P&gt;4. Programming&lt;/P&gt;
&lt;P&gt;2. Is&lt;/P&gt;
&lt;P&gt;3. Cool&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 18:43:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795726#M255255</guid>
      <dc:creator>Hello_there</dc:creator>
      <dc:date>2022-02-11T18:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I generate repeated texts down an existing column? Example inside</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795738#M255258</link>
      <description>&lt;P&gt;hhmmm... is this what you are looking for?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data have;&lt;BR /&gt;length name $15;&lt;BR /&gt;do j=1 to 1000;&lt;BR /&gt;do i=1 to 3;&lt;BR /&gt;if i=1 then do; name="Programming"; output; end;&lt;BR /&gt;if i=2 then do; name="Is"; output;end;&lt;BR /&gt;if i=3 then do; name="Cool"; output;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 18:34:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795738#M255258</guid>
      <dc:creator>CarmineVerrell</dc:creator>
      <dc:date>2022-02-11T18:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I generate repeated texts down an existing column? Example inside</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795744#M255261</link>
      <description>&lt;P&gt;I don't understand this. If that's your logic, then the word 'is' will be in the 2'nd row. And in the 5'th row. Which is not even?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 18:29:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795744#M255261</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-02-11T18:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I generate repeated texts down an existing column? Example inside</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795746#M255263</link>
      <description>&lt;P&gt;My mistake, but hopefully I made it understandable when I said I was looking for an output that looked like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OBS name&lt;/P&gt;
&lt;P&gt;1 Programming&lt;/P&gt;
&lt;P&gt;2 Is&lt;/P&gt;
&lt;P&gt;3 Cool&lt;/P&gt;
&lt;P&gt;4 Programming&lt;/P&gt;
&lt;P&gt;5 is&lt;/P&gt;
&lt;P&gt;6 Cool&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the mix up&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 18:42:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795746#M255263</guid>
      <dc:creator>Hello_there</dc:creator>
      <dc:date>2022-02-11T18:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I generate repeated texts down an existing column? Example inside</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795749#M255264</link>
      <description>&lt;P&gt;No worries. See if you can use this as a template&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data have;
infile datalines dsd dlm=",";
  input name :$20.;
datalines;
Programming
,
,
Programming
,
,
Programming
,
,
;
run;

data want;
   set have;
   if mod(_N_, 3) = 2 then name = 'Is';
   if mod(_N_, 3) = 0 then name = 'Cool';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Feb 2022 18:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795749#M255264</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-02-11T18:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I generate repeated texts down an existing column? Example inside</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795762#M255271</link>
      <description>Thanks this works well.</description>
      <pubDate>Fri, 11 Feb 2022 19:19:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795762#M255271</guid>
      <dc:creator>Hello_there</dc:creator>
      <dc:date>2022-02-11T19:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I generate repeated texts down an existing column? Example inside</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795765#M255272</link>
      <description>Thanks! This works well!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Feb 2022 19:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795765#M255272</guid>
      <dc:creator>Hello_there</dc:creator>
      <dc:date>2022-02-11T19:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I generate repeated texts down an existing column? Example inside</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795777#M255273</link>
      <description>&lt;P&gt;Anytime &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 20:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-generate-repeated-texts-down-an-existing-column-Example/m-p/795777#M255273</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-02-11T20:29:26Z</dc:date>
    </item>
  </channel>
</rss>

