<?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: How to Copy One record to Next record in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Copy-One-record-to-Next-record/m-p/545442#M150894</link>
    <description>Try:&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;Set have;&lt;BR /&gt;output;&lt;BR /&gt;output;&lt;BR /&gt;run;</description>
    <pubDate>Sat, 23 Mar 2019 06:14:24 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2019-03-23T06:14:24Z</dc:date>
    <item>
      <title>How to Copy One record to Next record</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Copy-One-record-to-Next-record/m-p/545439#M150893</link>
      <description>&lt;P&gt;I have only 1 record in my dataset and I want to copy that record and get the same in the second record.&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;x="Micro soft"&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;expected output&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Micro soft&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Micro Soft&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2019 06:10:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Copy-One-record-to-Next-record/m-p/545439#M150893</guid>
      <dc:creator>vThanu</dc:creator>
      <dc:date>2019-03-23T06:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Copy One record to Next record</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Copy-One-record-to-Next-record/m-p/545442#M150894</link>
      <description>Try:&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;Set have;&lt;BR /&gt;output;&lt;BR /&gt;output;&lt;BR /&gt;run;</description>
      <pubDate>Sat, 23 Mar 2019 06:14:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Copy-One-record-to-Next-record/m-p/545442#M150894</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-03-23T06:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Copy One record to Next record</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Copy-One-record-to-Next-record/m-p/545443#M150895</link>
      <description>&lt;P&gt;I'm not sure if this meets your actual needs, but you can control how many times an observation is written to your data set with the Output Statement like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
x="Micro soft";
output;
output;
run;

proc print data=have;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Mar 2019 06:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Copy-One-record-to-Next-record/m-p/545443#M150895</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-03-23T06:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Copy One record to Next record</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Copy-One-record-to-Next-record/m-p/545448#M150898</link>
      <description>apart from this do we have any other options....&lt;BR /&gt;like do look&lt;BR /&gt;do i = 1 to 2 (what ever the no we want)...&lt;BR /&gt;</description>
      <pubDate>Sat, 23 Mar 2019 06:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Copy-One-record-to-Next-record/m-p/545448#M150898</guid>
      <dc:creator>vThanu</dc:creator>
      <dc:date>2019-03-23T06:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Copy One record to Next record</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Copy-One-record-to-Next-record/m-p/545449#M150899</link>
      <description>&lt;P&gt;Yes, this gives you the same&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
x="Micro soft";
do i=1 to 2;
   output;
end;
run;

proc print data=have;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Mar 2019 06:35:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Copy-One-record-to-Next-record/m-p/545449#M150899</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-03-23T06:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Copy One record to Next record</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Copy-One-record-to-Next-record/m-p/545453#M150900</link>
      <description>Thank you.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Sat, 23 Mar 2019 07:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Copy-One-record-to-Next-record/m-p/545453#M150900</guid>
      <dc:creator>vThanu</dc:creator>
      <dc:date>2019-03-23T07:38:21Z</dc:date>
    </item>
  </channel>
</rss>

