<?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: Inserting Blank Rows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/356709#M83664</link>
    <description>&lt;P&gt;Why do you nerd blank rows? This is a display issue, so maybe you can add the spaces using PROC REPORT.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 07 May 2017 13:55:51 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-05-07T13:55:51Z</dc:date>
    <item>
      <title>Inserting Blank Rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/356698#M83659</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I use the following code to insert a blank row for each observation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;output; /* Output real observation */&lt;BR /&gt;if mod(_n_,1)=0;&lt;BR /&gt;array allnums {*} _numeric_ ;&lt;BR /&gt;array allchar {*} _character_ ;&lt;BR /&gt;drop i;&lt;BR /&gt;do i=1 to dim(allnums); allnums{i}=.; end;&lt;BR /&gt;do i=1 to dim(allchar); allchar{i}=' '; end;&lt;BR /&gt;output; /* Output blank observation */&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;options missing=' '; /* Display numeric missing as blank */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: How can I insert two or more blank rows for each observation?&lt;/P&gt;&lt;P&gt;Another question is: How can I insert a blank row in the beginning of the dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abu Chowdhury&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2017 12:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/356698#M83659</guid>
      <dc:creator>AbuChowdhury</dc:creator>
      <dc:date>2017-05-07T12:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Blank Rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/356699#M83660</link>
      <description>&lt;P&gt;I find it incomprehensive to use if &amp;nbsp;mod(_n_,1)=0, that is anyway going to be 0 for all iteractions when the denominator is 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly, you could simply use &lt;STRONG&gt;call missing(of _all_)&lt;/STRONG&gt; and output staments in one shot without having to declare and loop through array elements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Naveen Srinivaan&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2017 12:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/356699#M83660</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2017-05-07T12:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Blank Rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/356700#M83661</link>
      <description>&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; want;&lt;/P&gt;&lt;P&gt;if &lt;STRONG&gt;0&lt;/STRONG&gt; then set sashelp.class;&lt;/P&gt;&lt;P&gt;if _n_=&lt;STRONG&gt;1&lt;/STRONG&gt; then do;&lt;/P&gt;&lt;P&gt;call missing(of _all_);&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;set sashelp.class;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;call missing(of _all_);&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2017 13:04:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/356700#M83661</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2017-05-07T13:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Blank Rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/356702#M83662</link>
      <description>&lt;P&gt;That's a good set of tools for the job. &amp;nbsp;Notice also a simplifying possibility:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if &lt;/SPAN&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;SPAN&gt; then set sashelp.class;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;if _n_=&lt;STRONG&gt;1&lt;/STRONG&gt; then output;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the variables are already missing when _n_=1, you don't have to jump through that hoop of setting them to missing.&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2017 13:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/356702#M83662</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-05-07T13:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Blank Rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/356708#M83663</link>
      <description>&lt;P&gt;Why do you nerd blank rows? This is a display issue, so maybe you can add the spaces using PROC REPORT.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2017 13:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/356708#M83663</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-07T13:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Blank Rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/356709#M83664</link>
      <description>&lt;P&gt;Why do you nerd blank rows? This is a display issue, so maybe you can add the spaces using PROC REPORT.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2017 13:55:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/356709#M83664</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-07T13:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Blank Rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/356853#M83734</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
if _n_=1 then output;
set sashelp.class;
output;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 May 2017 12:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/356853#M83734</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-05-08T12:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting Blank Rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/357139#M83819</link>
      <description>&lt;P&gt;Thanks to all of you for your suggestions.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 11:45:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inserting-Blank-Rows/m-p/357139#M83819</guid>
      <dc:creator>AbuChowdhury</dc:creator>
      <dc:date>2017-05-09T11:45:54Z</dc:date>
    </item>
  </channel>
</rss>

