<?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 to the data set after finding particular observation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591554#M169478</link>
    <description>&lt;P&gt;Don't see a real obvious need for this but:&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   output;
   if hospitalname='Royal Alfred' then do;
      call missing(of _all_);
      output;
   end;
run;&lt;/PRE&gt;
&lt;P&gt;Should work.&lt;/P&gt;
&lt;P&gt;If you have multiple values you could use :&lt;/P&gt;
&lt;PRE&gt;   if hospitalname in ('Royal Alfred' 'Seattle') then do;
&lt;/PRE&gt;</description>
    <pubDate>Wed, 25 Sep 2019 14:33:12 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-09-25T14:33:12Z</dc:date>
    <item>
      <title>Add a blank row to the data set after finding particular observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591548#M169475</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a dataset(nobs=300) looks somethings like below&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Hospital name&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;N&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Mean&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;SE&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;N&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Mean&lt;/P&gt;&lt;/TD&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P&gt;Care Sydney&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Xx&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;xx&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Xx&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;xx&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;xx&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Xx&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly share your ideas, it would be very much helpful.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 14:26:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591548#M169475</guid>
      <dc:creator>sahoositaram555</dc:creator>
      <dc:date>2019-09-25T14:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row to the data set after finding particular observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591553#M169477</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    if hospital_name='Royal Alfred' then do;
        output;
        call missing(hospital_name);
        call missing(N);
        call missing(mean);
        /* You can type the rest of the variables, I'm too lazy */
        output;
    end;
    else output;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Sep 2019 14:33:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591553#M169477</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-25T14:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row to the data set after finding particular observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591554#M169478</link>
      <description>&lt;P&gt;Don't see a real obvious need for this but:&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   output;
   if hospitalname='Royal Alfred' then do;
      call missing(of _all_);
      output;
   end;
run;&lt;/PRE&gt;
&lt;P&gt;Should work.&lt;/P&gt;
&lt;P&gt;If you have multiple values you could use :&lt;/P&gt;
&lt;PRE&gt;   if hospitalname in ('Royal Alfred' 'Seattle') then do;
&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Sep 2019 14:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591554#M169478</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-25T14:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row to the data set after finding particular observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591557#M169480</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
	set have;
	output;

	if 'Hospital name'n="Royal Alfred" then
	do;
		array arr1 _character_;
		array arr2 _numeric_;

		do over arr1;
			arr1="";
		end;

		do over arr2;
			arr2=.;
		end;
		output;
	end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Sep 2019 14:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591557#M169480</guid>
      <dc:creator>franriv</dc:creator>
      <dc:date>2019-09-25T14:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row to the data set after finding particular observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591574#M169486</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;,&lt;BR /&gt;it's working well when we define call missing() statement for individual variables. but not working when call missing(of _all_).any thoughts on that? is it because i have a mixture of columns both in char&lt;BR /&gt;&amp;amp; num ?&lt;BR /&gt;&lt;BR /&gt;is there any option available to do it in a more shorter way since i have close to 10 columns with a mixture of both char &amp;amp; num?</description>
      <pubDate>Wed, 25 Sep 2019 15:17:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591574#M169486</guid>
      <dc:creator>sahoositaram555</dc:creator>
      <dc:date>2019-09-25T15:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row to the data set after finding particular observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591576#M169487</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/224992"&gt;@franriv&lt;/a&gt;, Many thanks for the code.I tried it in &amp;amp; out. It's not working.</description>
      <pubDate>Wed, 25 Sep 2019 15:18:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591576#M169487</guid>
      <dc:creator>sahoositaram555</dc:creator>
      <dc:date>2019-09-25T15:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row to the data set after finding particular observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591580#M169490</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/109034"&gt;@sahoositaram555&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;,&lt;BR /&gt;it's working well when we define call missing() statement for individual variables. but not working when call missing(of _all_).any thoughts on that? is it because i have a mixture of columns both in char&lt;BR /&gt;&amp;amp; num ?&lt;BR /&gt;&lt;BR /&gt;is there any option available to do it in a more shorter way since i have close to 10 columns with a mixture of both char &amp;amp; num?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show us the log (all the code, not just the errors) by clicking on the {i} icon and pasting the log into the window that appears.&amp;nbsp;&lt;STRONG&gt;Do not skip this step&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, please describe in detail what is "not working".&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 15:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591580#M169490</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-25T15:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row to the data set after finding particular observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591582#M169491</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/109034"&gt;@sahoositaram555&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;,&lt;BR /&gt;it's working well when we define call missing() statement for individual variables. but not working when call missing(of _all_).any thoughts on that? is it because i have a mixture of columns both in char&lt;BR /&gt;&amp;amp; num ?&lt;BR /&gt;&lt;BR /&gt;is there any option available to do it in a more shorter way since i have close to 10 columns with a mixture of both char &amp;amp; num?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Would have to see your actual code to comment on it.&lt;/P&gt;
&lt;P&gt;Also&lt;/P&gt;
&lt;P&gt;"Not working" is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the {i} to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat&lt;/A&gt;... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The example I provided with Call missing (of _all_) worked on the SASHELP.CLASS data set which contains a mix of character and numeric variables.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 15:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591582#M169491</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-25T15:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row to the data set after finding particular observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591590#M169494</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;,&lt;BR /&gt;My apology for not defining clearly about the statement Not working. Didn't mean to disrespect/hurt by anyway.Can't thank you enough for your help. &lt;BR /&gt;&lt;BR /&gt;So &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;, as you have suggested in the comment:&lt;BR /&gt;If you have multiple values you could use :&lt;BR /&gt;If you have multiple values you could use :&lt;BR /&gt;if hospitalname in ('Royal Alfred' 'Seattle') then do;&lt;BR /&gt;&lt;BR /&gt;-----&lt;BR /&gt;The code is not giving any error , but it is working only for the first variable means it is giving output for 'Royal Alfred' but not applying the condition for &lt;BR /&gt;'Seattle'.&lt;BR /&gt;&lt;BR /&gt;Any inputs from you both will be highly appreciated. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 15:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591590#M169494</guid>
      <dc:creator>sahoositaram555</dc:creator>
      <dc:date>2019-09-25T15:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row to the data set after finding particular observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591715#M169567</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/109034"&gt;@sahoositaram555&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;,&lt;BR /&gt;My apology for not defining clearly about the statement Not working. Didn't mean to disrespect/hurt by anyway.Can't thank you enough for your help. &lt;BR /&gt;&lt;BR /&gt;So &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;, as you have suggested in the comment:&lt;BR /&gt;If you have multiple values you could use :&lt;BR /&gt;If you have multiple values you could use :&lt;BR /&gt;if hospitalname in ('Royal Alfred' 'Seattle') then do;&lt;BR /&gt;&lt;BR /&gt;-----&lt;BR /&gt;The code is not giving any error , but it is working only for the first variable means it is giving output for 'Royal Alfred' but not applying the condition for &lt;BR /&gt;'Seattle'.&lt;BR /&gt;&lt;BR /&gt;Any inputs from you both will be highly appreciated. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Code&lt;/P&gt;
&lt;P&gt;Data&lt;/P&gt;
&lt;P&gt;We need both to determine what may be going on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The process with multiple values does work with the SASHELP.CLASS data set. You should have that available as part of your SAS Install.&lt;/P&gt;
&lt;PRE&gt;data want;
   set sashelp.class;
   output;
   if name in ('Barbara' 'John') then do;
      call missing(of _all_);
      output;
   end;
run;&lt;/PRE&gt;
&lt;P&gt;If code like above is only working for one value then you need to check spelling in either your code or data values.&lt;/P&gt;
&lt;P&gt;These won't place a row after John:&lt;/P&gt;
&lt;PRE&gt;   if name in ('Barbara' ' John') then do;
   if name in ('Barbara' 'john') then do;
&lt;/PRE&gt;
&lt;P&gt;The first has a typo in the code compared to the value, a leading space, the second because the equal operator requires the same case for character variables. If your data were to have a leading space such as ' John' then use of 'John' fails because it is missing the leading character.&lt;/P&gt;
&lt;P&gt;So without exact code - yours as submitted- and the actual data set we can't diagnose things. Note that character comparisons may have issues with other characters like TAB or NULL that get imbedded in the value somewhere along the line, or inconsistent case from data entry Seattle vs SeaTtle or such.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 21:32:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-a-blank-row-to-the-data-set-after-finding-particular/m-p/591715#M169567</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-25T21:32:20Z</dc:date>
    </item>
  </channel>
</rss>

