<?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 to repeat data in multiple times in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-repeat-data-in-multiple-times/m-p/494063#M130123</link>
    <description>&lt;P&gt;I had&amp;nbsp;observations that each and every observations will repeat 5 times in simple program. suggest me any one.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Ex001;
	input Name $ Designee $ 20-32 Department $;
	datalines;
		Madhu      Jr_Associate  QA
		Sathwik    Jr_Associate  PB
		Mohan      Manager       PB
		Raja       Manager       QA
		Kiran      Manager       BI
		Sainath    Manager       CL
		;
	
run;

Proc print data = Ex001;&lt;BR /&gt;run;&lt;BR /&gt;
                                 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; Which i want out put&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Untitled.jpg" style="width: 194px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23146i77BFA9400E5E1BC9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.jpg" alt="Untitled.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Sep 2018 09:53:03 GMT</pubDate>
    <dc:creator>sathwik</dc:creator>
    <dc:date>2018-09-10T09:53:03Z</dc:date>
    <item>
      <title>How to repeat data in multiple times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-repeat-data-in-multiple-times/m-p/494063#M130123</link>
      <description>&lt;P&gt;I had&amp;nbsp;observations that each and every observations will repeat 5 times in simple program. suggest me any one.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Ex001;
	input Name $ Designee $ 20-32 Department $;
	datalines;
		Madhu      Jr_Associate  QA
		Sathwik    Jr_Associate  PB
		Mohan      Manager       PB
		Raja       Manager       QA
		Kiran      Manager       BI
		Sainath    Manager       CL
		;
	
run;

Proc print data = Ex001;&lt;BR /&gt;run;&lt;BR /&gt;
                                 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; Which i want out put&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Untitled.jpg" style="width: 194px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23146i77BFA9400E5E1BC9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.jpg" alt="Untitled.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 09:53:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-repeat-data-in-multiple-times/m-p/494063#M130123</guid>
      <dc:creator>sathwik</dc:creator>
      <dc:date>2018-09-10T09:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to repeat data in multiple times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-repeat-data-in-multiple-times/m-p/494067#M130127</link>
      <description>&lt;P&gt;When putting test data in a datastep like that, ensure the data and the datalines statement all appear left aligned, otherwise you may get issues as SAS reads from position one on each row (you will note how you are putting positional reading in there as well, not a good idea).&amp;nbsp; Also, avoid using tab characters in code, these render differently between operating systems/tools.&amp;nbsp; Use spaces to indent, you can setup SAS to use spaces when pressing tabs - in base SAS it is under the options (spaces always render as 1 character regardless of os/tool, where tabs are different).&lt;/P&gt;
&lt;PRE&gt;data ex001;
  input name $ designee $ department $;
datalines;
Madhu      Jr_Associate  QA
Sathwik    Jr_Associate  PB
Mohan      Manager       PB
Raja       Manager       QA
Kiran      Manager       BI
Sainath    Manager       CL
;
run;

data want (drop=i);
  set ex001;
  do i=1 to 5;
    output;
  end;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 10:02:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-repeat-data-in-multiple-times/m-p/494067#M130127</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-10T10:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to repeat data in multiple times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-repeat-data-in-multiple-times/m-p/494069#M130129</link>
      <description>thank you&lt;BR /&gt;sathwik&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Sep 2018 10:06:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-repeat-data-in-multiple-times/m-p/494069#M130129</guid>
      <dc:creator>sathwik</dc:creator>
      <dc:date>2018-09-10T10:06:51Z</dc:date>
    </item>
  </channel>
</rss>

