<?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: SAS - remove empty rows only from one variable without changing the other variables in the datas in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-remove-empty-rows-only-from-one-variable-without-changing/m-p/620142#M19503</link>
    <description>&lt;P&gt;Thanks for the confirmation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the code I posted give you what you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not then please provide example output data for the given input data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2020 12:22:28 GMT</pubDate>
    <dc:creator>Amir</dc:creator>
    <dc:date>2020-01-27T12:22:28Z</dc:date>
    <item>
      <title>SAS - remove empty rows only from one variable without changing the other variables in the dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-remove-empty-rows-only-from-one-variable-without-changing/m-p/620131#M19495</link>
      <description>&lt;P&gt;I have a variable that looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;12341234&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;12341234123&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;123412341234&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;12314123124&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to keep only the rows with values, i.e. remove the rows without values. How do I do that only for this variable, without changing the other variables in the dataset?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 11:00:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-remove-empty-rows-only-from-one-variable-without-changing/m-p/620131#M19495</guid>
      <dc:creator>adrfinance</dc:creator>
      <dc:date>2020-01-27T11:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - remove empty rows only from one variable without changing the other variables in the datas</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-remove-empty-rows-only-from-one-variable-without-changing/m-p/620132#M19496</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/300616"&gt;@adrfinance&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the variable type numeric or character?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And are you happy to lose the data for the other variables in the same rows where this variable has no value?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 11:06:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-remove-empty-rows-only-from-one-variable-without-changing/m-p/620132#M19496</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2020-01-27T11:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - remove empty rows only from one variable without changing the other variables in the datas</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-remove-empty-rows-only-from-one-variable-without-changing/m-p/620133#M19497</link>
      <description>&lt;P&gt;If it is numeric and you are happy to lose the values of the other variables where your variable is missing then you could try the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
   infile datalines dsd;
   input
      seq_id : $8.
      my_var :  8.
   ;

   datalines;
1,12341234
2,.
3,.
4,.
5,12341234123
6,.
7,.
8,.
9,123412341234
10,.
11,.
12,.
13,12314123124
;


data want;
   set have;
   where not missing(my_var);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you need something else then please please provide what output you require.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 11:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-remove-empty-rows-only-from-one-variable-without-changing/m-p/620133#M19497</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2020-01-27T11:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - remove empty rows only from one variable without changing the other variables in the datas</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-remove-empty-rows-only-from-one-variable-without-changing/m-p/620139#M19502</link>
      <description>&lt;P&gt;the variable is numeric and I would like to keep the other variables as they are&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 12:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-remove-empty-rows-only-from-one-variable-without-changing/m-p/620139#M19502</guid>
      <dc:creator>adrfinance</dc:creator>
      <dc:date>2020-01-27T12:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - remove empty rows only from one variable without changing the other variables in the datas</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-remove-empty-rows-only-from-one-variable-without-changing/m-p/620142#M19503</link>
      <description>&lt;P&gt;Thanks for the confirmation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the code I posted give you what you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not then please provide example output data for the given input data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 12:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-remove-empty-rows-only-from-one-variable-without-changing/m-p/620142#M19503</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2020-01-27T12:22:28Z</dc:date>
    </item>
  </channel>
</rss>

