<?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: Appending data for 100 times. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Appending-data-for-100-times/m-p/74457#M21611</link>
    <description>Using the SAS/STAT procedure SURVEYSELECT provides what is probably the simpliest solution.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data l;&lt;BR /&gt;
   input id name$;&lt;BR /&gt;
   cards;&lt;BR /&gt;
1 temp&lt;BR /&gt;
2 ordinary&lt;BR /&gt;
3 general&lt;BR /&gt;
;;;;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc surveyselect rep=10 rate=1 out=repeated;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc print;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Tue, 06 Oct 2009 11:49:37 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2009-10-06T11:49:37Z</dc:date>
    <item>
      <title>Appending data for 100 times.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Appending-data-for-100-times/m-p/74455#M21609</link>
      <description>In a dataset there are 250 obseravations .Now i want all the observations appended to new dataset and each observation should be repeated to 100 times.so the observations should be 25,000&lt;BR /&gt;
&lt;BR /&gt;
ex.&lt;BR /&gt;
data l;&lt;BR /&gt;
input id name$;&lt;BR /&gt;
1 temp&lt;BR /&gt;
2 ordinary&lt;BR /&gt;
3 general&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
the observation temp,ordinary,general  should repat 100 times and form new dataset.&lt;BR /&gt;
&lt;BR /&gt;
output shd be&lt;BR /&gt;
1 temp&lt;BR /&gt;
2 ordinary&lt;BR /&gt;
3 general&lt;BR /&gt;
1 temp&lt;BR /&gt;
2 ordinary&lt;BR /&gt;
3 general&lt;BR /&gt;
1 temp&lt;BR /&gt;
2 ordinary&lt;BR /&gt;
3 general&lt;BR /&gt;
1 temp&lt;BR /&gt;
2 ordinary&lt;BR /&gt;
3 general&lt;BR /&gt;
1 temp&lt;BR /&gt;
2 ordinary&lt;BR /&gt;
3 general&lt;BR /&gt;
like this</description>
      <pubDate>Tue, 06 Oct 2009 10:07:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Appending-data-for-100-times/m-p/74455#M21609</guid>
      <dc:creator>R_Win</dc:creator>
      <dc:date>2009-10-06T10:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Appending data for 100 times.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Appending-data-for-100-times/m-p/74456#M21610</link>
      <description>The problem can be solved by using a do-loop containing an output-statement.&lt;BR /&gt;
&lt;BR /&gt;
[pre]data NewData;&lt;BR /&gt;
    set OldData;&lt;BR /&gt;
    length i 8;&lt;BR /&gt;
    drop i;&lt;BR /&gt;
    do i = 1 to 100;&lt;BR /&gt;
        output;&lt;BR /&gt;
    end;&lt;BR /&gt;
run;[/pre]</description>
      <pubDate>Tue, 06 Oct 2009 10:15:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Appending-data-for-100-times/m-p/74456#M21610</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2009-10-06T10:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Appending data for 100 times.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Appending-data-for-100-times/m-p/74457#M21611</link>
      <description>Using the SAS/STAT procedure SURVEYSELECT provides what is probably the simpliest solution.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data l;&lt;BR /&gt;
   input id name$;&lt;BR /&gt;
   cards;&lt;BR /&gt;
1 temp&lt;BR /&gt;
2 ordinary&lt;BR /&gt;
3 general&lt;BR /&gt;
;;;;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc surveyselect rep=10 rate=1 out=repeated;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc print;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 06 Oct 2009 11:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Appending-data-for-100-times/m-p/74457#M21611</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-10-06T11:49:37Z</dc:date>
    </item>
  </channel>
</rss>

