<?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: I want to delete 2 empty lines from a column in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-want-to-delete-2-empty-lines-from-a-column/m-p/874639#M42880</link>
    <description>&lt;P&gt;SAS Datasets do not operate with 'cells'. What is your data source?&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 10:59:16 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2023-05-09T10:59:16Z</dc:date>
    <item>
      <title>I want to delete 2 empty lines from a column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-want-to-delete-2-empty-lines-from-a-column/m-p/874638#M42879</link>
      <description>Hello Experts,&lt;BR /&gt;I am having a data in which data starts at the third line in a single cell. Suppose in A1 cell my data has 2 empty lines(lines not space). 3rd line I am having data in A1 cell. &lt;BR /&gt;&lt;BR /&gt;How to remove two empty lines and keep the data in the first line of the cell &lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Tue, 09 May 2023 10:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-want-to-delete-2-empty-lines-from-a-column/m-p/874638#M42879</guid>
      <dc:creator>_el_doredo</dc:creator>
      <dc:date>2023-05-09T10:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: I want to delete 2 empty lines from a column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-want-to-delete-2-empty-lines-from-a-column/m-p/874639#M42880</link>
      <description>&lt;P&gt;SAS Datasets do not operate with 'cells'. What is your data source?&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 10:59:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-want-to-delete-2-empty-lines-from-a-column/m-p/874639#M42880</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2023-05-09T10:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: I want to delete 2 empty lines from a column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-want-to-delete-2-empty-lines-from-a-column/m-p/874641#M42881</link>
      <description>My input data is from .xlsx format..</description>
      <pubDate>Tue, 09 May 2023 11:01:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-want-to-delete-2-empty-lines-from-a-column/m-p/874641#M42881</guid>
      <dc:creator>_el_doredo</dc:creator>
      <dc:date>2023-05-09T11:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: I want to delete 2 empty lines from a column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-want-to-delete-2-empty-lines-from-a-column/m-p/874642#M42882</link>
      <description>&lt;P&gt;Then make the desired changes in Excel.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 11:05:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-want-to-delete-2-empty-lines-from-a-column/m-p/874642#M42882</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-05-09T11:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: I want to delete 2 empty lines from a column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-want-to-delete-2-empty-lines-from-a-column/m-p/874644#M42883</link>
      <description>If it is for one observation means we can do manually but it is for more than 1000 observation. So looking for a function in sas</description>
      <pubDate>Tue, 09 May 2023 11:09:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-want-to-delete-2-empty-lines-from-a-column/m-p/874644#M42883</guid>
      <dc:creator>_el_doredo</dc:creator>
      <dc:date>2023-05-09T11:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: I want to delete 2 empty lines from a column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-want-to-delete-2-empty-lines-from-a-column/m-p/874645#M42884</link>
      <description>&lt;P&gt;Some things are easy in Excel but can be very difficult to do in SAS. It would help if we could see the SAS data set &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;DO&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;NOT SHOW US THE EXCEL FILE&lt;/STRONG&gt;&lt;/FONT&gt;. Please show us a portion of the SAS data set as working SAS data step code (&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;examples and instructions&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 11:22:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-want-to-delete-2-empty-lines-from-a-column/m-p/874645#M42884</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-05-09T11:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: I want to delete 2 empty lines from a column</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-want-to-delete-2-empty-lines-from-a-column/m-p/874669#M42886</link>
      <description>&lt;P&gt;Define "empty line". SAS data sets do not have a concept of "line" to work with.&lt;/P&gt;
&lt;P&gt;If it means that you have a SAS data set where all of the variables are missing then something similar might work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Data want;
   set have;
   if missing(var1) and missing(var2) and missing(var2) then delete;
run;&lt;/PRE&gt;
&lt;P&gt;The Missing function tests if a variable is missing and returns 1/0 (true or false) for a specific observation's values. Var1, Var2 and Var3 dummy names for the first, second and third variable ('column') to see if they are missing. Add more variables if those might be missing but other variables aren't. Delete is the data step instruction to remove an observation from the output (do not write to output set).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR if you know how many variables there are in your data set you could use&lt;/P&gt;
&lt;PRE&gt;data want;
   set have;
   if cmiss( of _all_) = &amp;lt;number of variables&amp;gt; then delete;
run;&lt;/PRE&gt;
&lt;P&gt;If the number of variables in the set is 12, as an example replace &amp;lt;number of variables&amp;gt; with 12.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/366820"&gt;@_el_doredo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hello Experts,&lt;BR /&gt;I am having a data in which data starts at the third line in a single cell. Suppose in A1 cell my data has 2 empty lines(lines not space). 3rd line I am having data in A1 cell. &lt;BR /&gt;&lt;BR /&gt;How to remove two empty lines and keep the data in the first line of the cell &lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 14:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/I-want-to-delete-2-empty-lines-from-a-column/m-p/874669#M42886</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-09T14:31:48Z</dc:date>
    </item>
  </channel>
</rss>

