<?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: adding record for multiple rows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/adding-record-for-multiple-rows/m-p/446065#M111858</link>
    <description>Hi Reeza,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply.&lt;BR /&gt;</description>
    <pubDate>Fri, 16 Mar 2018 03:24:37 GMT</pubDate>
    <dc:creator>Marmar</dc:creator>
    <dc:date>2018-03-16T03:24:37Z</dc:date>
    <item>
      <title>adding record for multiple rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adding-record-for-multiple-rows/m-p/446040#M111851</link>
      <description>&lt;P&gt;I have a dataset of 3000 observations and three variables which one of them is ID. How can I add 80 more records to ID after the last record while the value for the other two variables be replaced with missing? My SAS version is 9.3.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 02:20:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adding-record-for-multiple-rows/m-p/446040#M111851</guid>
      <dc:creator>Marmar</dc:creator>
      <dc:date>2018-03-16T02:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: adding record for multiple rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adding-record-for-multiple-rows/m-p/446053#M111854</link>
      <description>&lt;UL&gt;
&lt;LI&gt;Use END to identify the last record&lt;/LI&gt;
&lt;LI&gt;Use an explicit OUTPUT to output the reocrds&lt;/LI&gt;
&lt;LI&gt;Use a DO loop to loop 80 times&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set sashelp.class end=eof;
    output;

    if eof then
        do i=1 to 80;
            call missing(of age, weight, height);
            output;
        end;&lt;BR /&gt;&lt;BR /&gt;    drop i;&lt;BR /&gt;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/150030"&gt;@Marmar&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I have a dataset of 3000 observations and three variables which one of them is ID. How can I add 80 more records to ID after the last record while the value for the other two variables be replaced with missing? My SAS version is 9.3.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 03:00:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adding-record-for-multiple-rows/m-p/446053#M111854</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-16T03:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: adding record for multiple rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/adding-record-for-multiple-rows/m-p/446065#M111858</link>
      <description>Hi Reeza,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply.&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Mar 2018 03:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/adding-record-for-multiple-rows/m-p/446065#M111858</guid>
      <dc:creator>Marmar</dc:creator>
      <dc:date>2018-03-16T03:24:37Z</dc:date>
    </item>
  </channel>
</rss>

