<?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: Add a blank row below a row in a dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-below-a-row-in-a-dataset/m-p/944992#M370248</link>
    <description>&lt;P&gt;I assume you want to add such empty rows for some reporting purposes. If so then that would be a very suboptimal approach. I suggest you explain us what you have and what you want to achieve for us to provide some advice.&lt;/P&gt;
&lt;P&gt;Below code to answer your question (but... don't do it. SAS tables and Excel sheets are very different things).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dummy; length col1 $200;
  col1="BASELINE Heart Rate";output;
  call missing(col1); output;
  /* and so on */
  col1='PLACEBO-CONTROLLED Heart Rate';output;
  col1='WEEK 2 Heart Rate';output;
  col1='WEEK 4 Heart Rate';output;
  col1='WEEK 8 Heart Rate';output;
  col1='WEEK 12 Heart Rate';output;
  col1='WEEK 18 Heart Rate';output;
  col1='BASELINE SYSBP';output;
  col1='PLACEBO-CONTROLLED SYSBP';output;
  col1='WEEK 2 SYSBP';output;
  col1='WEEK 4 SYSBP';output;
  col1='WEEK 8 SYSBP';output;
  col1='WEEK 12 SYSBP';output;
  col1='WEEK 18 SYSBP';output;
  col1='BASELINE DIABP';output;
  col1='PLACEBO-CONTROLLED DIABP';output;
  col1='WEEK 2 DIABP';output;
  col1='WEEK 4 DIABP';output;
  col1='WEEK 8 DIABP';output;
  col1='WEEK 12 DIABP';output;
  col1='WEEK 18 DIABP';output;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 03:27:53 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2024-09-24T03:27:53Z</dc:date>
    <item>
      <title>Add a blank row below a row in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-below-a-row-in-a-dataset/m-p/944991#M370247</link>
      <description>&lt;P&gt;Hi All, i have a dataset as below.&lt;/P&gt;
&lt;P&gt;data dummy; length col1 $200;&lt;BR /&gt;col1="BASELINE Heart Rate";output;&lt;BR /&gt;col1='PLACEBO-CONTROLLED Heart Rate';output;&lt;BR /&gt;col1='WEEK 2 Heart Rate';output;&lt;BR /&gt;col1='WEEK 4 Heart Rate';output;&lt;BR /&gt;col1='WEEK 8 Heart Rate';output;&lt;BR /&gt;col1='WEEK 12 Heart Rate';output;&lt;BR /&gt;col1='WEEK 18 Heart Rate';output;&lt;BR /&gt;col1='BASELINE SYSBP';output;&lt;BR /&gt;col1='PLACEBO-CONTROLLED SYSBP';output;&lt;BR /&gt;col1='WEEK 2 SYSBP';output;&lt;BR /&gt;col1='WEEK 4 SYSBP';output;&lt;BR /&gt;col1='WEEK 8 SYSBP';output;&lt;BR /&gt;col1='WEEK 12 SYSBP';output;&lt;BR /&gt;col1='WEEK 18 SYSBP';output;&lt;BR /&gt;col1='BASELINE DIABP';output;&lt;BR /&gt;col1='PLACEBO-CONTROLLED DIABP';output;&lt;BR /&gt;col1='WEEK 2 DIABP';output;&lt;BR /&gt;col1='WEEK 4 DIABP';output;&lt;BR /&gt;col1='WEEK 8 DIABP';output;&lt;BR /&gt;col1='WEEK 12 DIABP';output;&lt;BR /&gt;col1='WEEK 18 DIABP';output;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to insert 1 blank row each below the rows PLACEBO-CONTROLLED&amp;nbsp;Heart Rate,&amp;nbsp;PLACEBO-CONTROLLED SYSBP,&amp;nbsp;PLACEBO-CONTROLLED DIABP.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how this can be achieved, please suggest, I heard call missing would work, but unable to do so.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 03:19:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-below-a-row-in-a-dataset/m-p/944991#M370247</guid>
      <dc:creator>sahoositaram555</dc:creator>
      <dc:date>2024-09-24T03:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row below a row in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-below-a-row-in-a-dataset/m-p/944992#M370248</link>
      <description>&lt;P&gt;I assume you want to add such empty rows for some reporting purposes. If so then that would be a very suboptimal approach. I suggest you explain us what you have and what you want to achieve for us to provide some advice.&lt;/P&gt;
&lt;P&gt;Below code to answer your question (but... don't do it. SAS tables and Excel sheets are very different things).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dummy; length col1 $200;
  col1="BASELINE Heart Rate";output;
  call missing(col1); output;
  /* and so on */
  col1='PLACEBO-CONTROLLED Heart Rate';output;
  col1='WEEK 2 Heart Rate';output;
  col1='WEEK 4 Heart Rate';output;
  col1='WEEK 8 Heart Rate';output;
  col1='WEEK 12 Heart Rate';output;
  col1='WEEK 18 Heart Rate';output;
  col1='BASELINE SYSBP';output;
  col1='PLACEBO-CONTROLLED SYSBP';output;
  col1='WEEK 2 SYSBP';output;
  col1='WEEK 4 SYSBP';output;
  col1='WEEK 8 SYSBP';output;
  col1='WEEK 12 SYSBP';output;
  col1='WEEK 18 SYSBP';output;
  col1='BASELINE DIABP';output;
  col1='PLACEBO-CONTROLLED DIABP';output;
  col1='WEEK 2 DIABP';output;
  col1='WEEK 4 DIABP';output;
  col1='WEEK 8 DIABP';output;
  col1='WEEK 12 DIABP';output;
  col1='WEEK 18 DIABP';output;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 03:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-below-a-row-in-a-dataset/m-p/944992#M370248</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-09-24T03:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row below a row in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-below-a-row-in-a-dataset/m-p/944995#M370249</link>
      <description>&lt;P&gt;Even though the ultimate goal is reporting, but i want to have the blank line at the dataset level as shown in the attached snap.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sahoositaram555_0-1727149533903.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100617i55706AB8C6DA5BA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sahoositaram555_0-1727149533903.png" alt="sahoositaram555_0-1727149533903.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 03:46:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-below-a-row-in-a-dataset/m-p/944995#M370249</guid>
      <dc:creator>sahoositaram555</dc:creator>
      <dc:date>2024-09-24T03:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row below a row in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-below-a-row-in-a-dataset/m-p/944996#M370250</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;, I appreciate your reponse, i created this dummy dataset just to post as an example. by using call missing(col1) is not the intention, instead in a dataset level how can i manage to add a blank line when ever the col1 finds a PLACEBO CONTROLLED ?</description>
      <pubDate>Tue, 24 Sep 2024 03:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-below-a-row-in-a-dataset/m-p/944996#M370250</guid>
      <dc:creator>sahoositaram555</dc:creator>
      <dc:date>2024-09-24T03:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row below a row in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-below-a-row-in-a-dataset/m-p/944997#M370251</link>
      <description>&lt;P&gt;You shouldn't mix display layout with data structure. Proc Report would also allow to add such empty lines at the beginning or the end of a group. But o.k., here you go:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set dummy;
  output;
  if col1 =: 'PLACEBO-CONTROLLED' then
    do;
      call missing(col1);
      col0='week 2';
      output;
    end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 03:59:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-below-a-row-in-a-dataset/m-p/944997#M370251</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-09-24T03:59:11Z</dc:date>
    </item>
  </channel>
</rss>

