<?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 insert empty record between the dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-insert-empty-record-between-the-dataset/m-p/613256#M179084</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also simplify your code by using the iteration number _n_ (internal variable).&lt;/P&gt;
&lt;P&gt;NB: if you want to add a missing observation on row #6, you need to specify _n_ = 5.&lt;/P&gt;
&lt;P&gt;It is the same for the answer proposed by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
	set sashelp.class;
	output;
	if _n_ = 5 then do;
		call missing(of _all_);
		output;
	end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 20 Dec 2019 15:36:50 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2019-12-20T15:36:50Z</dc:date>
    <item>
      <title>how to insert empty record between the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-insert-empty-record-between-the-dataset/m-p/613243#M179078</link>
      <description>&lt;P&gt;I have sashelp.class and total 19 records .&lt;/P&gt;
&lt;P&gt;I have to create one more record it should be empty and record number is 6.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.....values&lt;/P&gt;
&lt;P&gt;2.....values&lt;/P&gt;
&lt;P&gt;3....values&lt;/P&gt;
&lt;P&gt;4....values&lt;/P&gt;
&lt;P&gt;5.....values&lt;/P&gt;
&lt;P&gt;6....empty record&lt;/P&gt;
&lt;P&gt;7.....values.....&lt;/P&gt;
&lt;P&gt;......&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 15:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-insert-empty-record-between-the-dataset/m-p/613243#M179078</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-12-20T15:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to insert empty record between the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-insert-empty-record-between-the-dataset/m-p/613245#M179079</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set sashelp.class curobs=k;
output;
if k=6 then do;
call missing(of _all_);
output;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Dec 2019 15:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-insert-empty-record-between-the-dataset/m-p/613245#M179079</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-12-20T15:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to insert empty record between the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-insert-empty-record-between-the-dataset/m-p/613246#M179080</link>
      <description>May I know what is curobs</description>
      <pubDate>Fri, 20 Dec 2019 15:04:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-insert-empty-record-between-the-dataset/m-p/613246#M179080</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-12-20T15:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to insert empty record between the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-insert-empty-record-between-the-dataset/m-p/613247#M179081</link>
      <description>&lt;P&gt;Basically an option for rownumber/record identifier.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 15:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-insert-empty-record-between-the-dataset/m-p/613247#M179081</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-12-20T15:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to insert empty record between the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-insert-empty-record-between-the-dataset/m-p/613256#M179084</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also simplify your code by using the iteration number _n_ (internal variable).&lt;/P&gt;
&lt;P&gt;NB: if you want to add a missing observation on row #6, you need to specify _n_ = 5.&lt;/P&gt;
&lt;P&gt;It is the same for the answer proposed by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
	set sashelp.class;
	output;
	if _n_ = 5 then do;
		call missing(of _all_);
		output;
	end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Dec 2019 15:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-insert-empty-record-between-the-dataset/m-p/613256#M179084</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2019-12-20T15:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to insert empty record between the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-insert-empty-record-between-the-dataset/m-p/613262#M179088</link>
      <description>&lt;P&gt;Not a bad idea. IMHO,, use of &lt;EM&gt;"iteration number"&lt;/EM&gt; in place of record number that's stated in the original objective is vulnerable to incorrect results considering the iteration number can be easily manipulated unlike precise&amp;nbsp;record number. There is often that misconception among many.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Right now, feeling too lazy perhaps being Friday, to demonstrate the impact but&amp;nbsp; a slight and simple WHERE/DELETE/LINK/GOTO/RETURN and more so when processing with techniques like DOW and multidim array can/probably will completely change the course of _N_ vs Record number.&amp;nbsp; One has to be very careful knowing data and objective, but with Record number, it's bullet proof!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 15:54:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-insert-empty-record-between-the-dataset/m-p/613262#M179088</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-12-20T15:54:23Z</dc:date>
    </item>
  </channel>
</rss>

