<?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 Create unique rows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-unique-rows/m-p/302385#M64142</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Am trying to create unique row values depending on a numeric value. like If x=6, create 6 unique rows in a dataset. Any help is appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2016 16:07:06 GMT</pubDate>
    <dc:creator>HabAM</dc:creator>
    <dc:date>2016-10-04T16:07:06Z</dc:date>
    <item>
      <title>Create unique rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-unique-rows/m-p/302385#M64142</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Am trying to create unique row values depending on a numeric value. like If x=6, create 6 unique rows in a dataset. Any help is appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 16:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-unique-rows/m-p/302385#M64142</guid>
      <dc:creator>HabAM</dc:creator>
      <dc:date>2016-10-04T16:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create unique rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-unique-rows/m-p/302388#M64144</link>
      <description>&lt;P&gt;Have you tried something simple and direct like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;do rownum=1 to x;&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;</description>
      <pubDate>Tue, 04 Oct 2016 16:24:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-unique-rows/m-p/302388#M64144</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-10-04T16:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create unique rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-unique-rows/m-p/302389#M64145</link>
      <description>&lt;P&gt;It would help to provide some example of what other values may be involved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;x=6;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; do i=1 to x;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;will generate a given number of additional records based on the value of a variable. If the Variable X is a data set and is used on a SET statement then you will get additional records with the same values for all the other variables (except i).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 16:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-unique-rows/m-p/302389#M64145</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-04T16:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create unique rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-unique-rows/m-p/302403#M64149</link>
      <description>Thank you</description>
      <pubDate>Tue, 04 Oct 2016 16:59:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-unique-rows/m-p/302403#M64149</guid>
      <dc:creator>HabAM</dc:creator>
      <dc:date>2016-10-04T16:59:00Z</dc:date>
    </item>
  </channel>
</rss>

