<?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: Merging one dataset 'N' number of times in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97791#M290525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually have a dataset that contains 129 rows and 10-15 columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just "set" those datasets 1000 times using your loop and created a dataset with 129,000 rows and 10-15 columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I created a "do-loop" for generating 1000 random sets of weights and used those 1000 random sets of weights and used data transformation to create an index. So I have 1000 datasets each containing 129 observations with different weights assigned to each index variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, my questions is within each dataset which has 129 observations, I wanted to write the code to create a 10th percentile and 90th percentile for that dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to understand what I am trying to say??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prasanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2012 19:00:14 GMT</pubDate>
    <dc:creator>prasanthkambhatla</dc:creator>
    <dc:date>2012-04-27T19:00:14Z</dc:date>
    <item>
      <title>Merging one dataset 'N' number of times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97784#M290518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a huge dataset and I wanted to merge that same dataset 1000 times. I tried do loops, i tried macros but none of them seemed to have worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prasanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 18:25:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97784#M290518</guid>
      <dc:creator>prasanthkambhatla</dc:creator>
      <dc:date>2012-04-27T18:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Merging one dataset 'N' number of times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97785#M290519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you sure you want to "merge" the same dataset?&amp;nbsp; maybe you want to "set" the dataset?&lt;/P&gt;&lt;P&gt;no matter how many times you merge, you only get the original dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;&amp;nbsp; input id;&lt;BR /&gt; cards;&lt;BR /&gt;1&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;&amp;nbsp; merge have have have;&lt;BR /&gt;run;&lt;BR /&gt;proc print;run;&lt;/P&gt;&lt;P&gt;obs&amp;nbsp; id&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 18:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97785#M290519</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-04-27T18:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Merging one dataset 'N' number of times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97786#M290520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry, I wanted to set the same dataset 1000 times. I am unable to do it. Could you please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 18:35:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97786#M290520</guid>
      <dc:creator>prasanthkambhatla</dc:creator>
      <dc:date>2012-04-27T18:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Merging one dataset 'N' number of times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97787#M290521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you only want to expand the file 1,000 times.&amp;nbsp; If so, you could use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want (drop=i);&lt;/P&gt;&lt;P&gt; set have;&lt;/P&gt;&lt;P&gt; do i=1 to 1000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 18:40:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97787#M290521</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-04-27T18:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Merging one dataset 'N' number of times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97788#M290522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes. try the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input id $;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;a&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;%macro test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set %do i=1 %to 1000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; have&lt;/P&gt;&lt;P&gt;&amp;nbsp; %end;;&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt; %mend;&lt;/P&gt;&lt;P&gt;%test &lt;/P&gt;&lt;P&gt; proc print data=want;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 18:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97788#M290522</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-04-27T18:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Merging one dataset 'N' number of times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97789#M290523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Linlin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you also tell me this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have huge dataset with 129,000 rows. However, the original dataset only contains 129 rows but with 1000 repetitions of different weights (those weights generated by random uniform distribution) assigned to each variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me how to calculate the 10th percentile (p10) and 90th percentile (p90) for the each of the dataset (dataset=129 observations) within the large dataset. So that ultimately I would have 1000 p10s and 1000 p90s?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 18:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97789#M290523</guid>
      <dc:creator>prasanthkambhatla</dc:creator>
      <dc:date>2012-04-27T18:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Merging one dataset 'N' number of times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97790#M290524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry. I don't understand the question.&amp;nbsp; - Linlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 18:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97790#M290524</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-04-27T18:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Merging one dataset 'N' number of times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97791#M290525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually have a dataset that contains 129 rows and 10-15 columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just "set" those datasets 1000 times using your loop and created a dataset with 129,000 rows and 10-15 columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I created a "do-loop" for generating 1000 random sets of weights and used those 1000 random sets of weights and used data transformation to create an index. So I have 1000 datasets each containing 129 observations with different weights assigned to each index variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, my questions is within each dataset which has 129 observations, I wanted to write the code to create a 10th percentile and 90th percentile for that dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to understand what I am trying to say??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prasanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 19:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97791#M290525</guid>
      <dc:creator>prasanthkambhatla</dc:creator>
      <dc:date>2012-04-27T19:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Merging one dataset 'N' number of times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97792#M290526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have dataset with 30 observations. which are your 10th percentile and 90th percentile?&lt;/P&gt;&lt;P&gt;bs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;BR /&gt;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;BR /&gt;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;BR /&gt;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;BR /&gt;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;BR /&gt;&amp;nbsp; 7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&lt;BR /&gt;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;BR /&gt;&amp;nbsp; 9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&lt;BR /&gt; 10&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;BR /&gt; 11&amp;nbsp;&amp;nbsp;&amp;nbsp; 11&lt;BR /&gt; 12&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&lt;BR /&gt; 13&amp;nbsp;&amp;nbsp;&amp;nbsp; 13&lt;BR /&gt; 14&amp;nbsp;&amp;nbsp;&amp;nbsp; 14&lt;BR /&gt; 15&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&lt;BR /&gt; 16&amp;nbsp;&amp;nbsp;&amp;nbsp; 16&lt;BR /&gt; 17&amp;nbsp;&amp;nbsp;&amp;nbsp; 17&lt;BR /&gt; 18&amp;nbsp;&amp;nbsp;&amp;nbsp; 18&lt;BR /&gt; 19&amp;nbsp;&amp;nbsp;&amp;nbsp; 19&lt;BR /&gt; 20&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;BR /&gt; 21&amp;nbsp;&amp;nbsp;&amp;nbsp; 21&lt;BR /&gt; 22&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;BR /&gt; 23&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;BR /&gt; 24&amp;nbsp;&amp;nbsp;&amp;nbsp; 24&lt;BR /&gt; 25&amp;nbsp;&amp;nbsp;&amp;nbsp; 25&lt;BR /&gt; 26&amp;nbsp;&amp;nbsp;&amp;nbsp; 26&lt;BR /&gt; 27&amp;nbsp;&amp;nbsp;&amp;nbsp; 27&lt;BR /&gt; 28&amp;nbsp;&amp;nbsp;&amp;nbsp; 28&lt;BR /&gt; 29&amp;nbsp;&amp;nbsp;&amp;nbsp; 29&lt;BR /&gt; 30&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 19:09:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97792#M290526</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-04-27T19:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Merging one dataset 'N' number of times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97793#M290527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I have the above dataset, how to write the code for the 10th and 90th percentile for 1-10 obs, 10-20 obs, 20-30 obs, like that if I had a dataset for 129,000, i have to write a code for 1-129 obs each.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 19:13:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97793#M290527</guid>
      <dc:creator>prasanthkambhatla</dc:creator>
      <dc:date>2012-04-27T19:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Merging one dataset 'N' number of times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97794#M290528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;surveyselect&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;=sashelp.class &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;=class15 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;rep&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;15&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;rate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; class15;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; class15;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; weight = rannor(&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;124&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;)+rannor();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;stdize&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;=class15&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;=_null_&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;outstat&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;=pctile &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;pctlpts&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;5&lt;/STRONG&gt; &lt;STRONG style="color: teal; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;10&lt;/STRONG&gt; &lt;STRONG style="color: teal; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;50&lt;/STRONG&gt; &lt;STRONG style="color: teal; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;90&lt;/STRONG&gt; &lt;STRONG style="color: teal; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;94&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; weight;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; replicate;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;Proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;print&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 19:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97794#M290528</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-04-27T19:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Merging one dataset 'N' number of times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97795#M290529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Art's code is better than the macro.&lt;/P&gt;&lt;P&gt;hope this helpful:&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;&amp;nbsp; input id $;&lt;BR /&gt;cards;&lt;BR /&gt;a&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;data temp (drop=i);&lt;BR /&gt; set have;&lt;BR /&gt; do i=1 to 1000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; output;&lt;BR /&gt; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;&amp;nbsp; set temp nobs=nobs;&lt;BR /&gt;&amp;nbsp; if _n_/nobs &amp;lt;=0.1 then p=10;&lt;BR /&gt;&amp;nbsp; else if _n_/nobs &amp;lt;=0.2 then p=20;&lt;BR /&gt; else if _n_/nobs &amp;lt;=0.3 then p=30;&lt;BR /&gt; else if _n_/nobs &amp;lt;=0.4 then p=40;&lt;BR /&gt; else if _n_/nobs &amp;lt;=0.5 then p=50;&lt;BR /&gt; else if _n_/nobs &amp;lt;=0.6 then p=60;&lt;BR /&gt; else if _n_/nobs &amp;lt;=0.7 then p=70;&lt;BR /&gt; else if _n_/nobs &amp;lt;=0.8 then p=80;&lt;BR /&gt; else if _n_/nobs &amp;lt;=0.9 then p=90;&lt;BR /&gt;&amp;nbsp; else p=100;&lt;BR /&gt; run;&lt;BR /&gt;proc print;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 19:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-one-dataset-N-number-of-times/m-p/97795#M290529</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-04-27T19:27:01Z</dc:date>
    </item>
  </channel>
</rss>

