<?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 delete empty row observations for data with multiple rows per subject in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/329900#M62586</link>
    <description>&lt;P&gt;IDs are numeric for this dataset!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2017 21:13:42 GMT</pubDate>
    <dc:creator>Dbynoe</dc:creator>
    <dc:date>2017-02-03T21:13:42Z</dc:date>
    <item>
      <title>How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/329870#M62579</link>
      <description>&lt;P&gt;My data contains several rows of data per ID (each row pertains to a particular member of their network), and I'd like to remove rows with no data. In order words, I'd like code for the "Ideal SAS Output" (thank you in advance for your help):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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; &am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gt;&lt;SPAN&gt;1234&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;4&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 Feb 2017 18:56:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/329870#M62579</guid>
      <dc:creator>Dbynoe</dc:creator>
      <dc:date>2017-02-03T18:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/329894#M62583</link>
      <description>&lt;P&gt;I can't tell what your variable names are but&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if cmiss(id, r1,r2,r3 ...) = &amp;lt;the number of variables you put there&amp;gt; then delete;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;should do it. Put the actual list of variables&amp;nbsp; inside the () and make sure that the number compared is the number of variables in the list.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 20:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/329894#M62583</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-03T20:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/329895#M62584</link>
      <description>&lt;P&gt;Thank you so much for the response! I really do appreciate it. The dataset I'm working with has more than 4000 varialbes, do you perhaps know of a more time efficient ways of acheiving the same goal?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 20:54:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/329895#M62584</guid>
      <dc:creator>Dbynoe</dc:creator>
      <dc:date>2017-02-03T20:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/329897#M62585</link>
      <description>&lt;P&gt;It looks like ID is always present, even when you want to delete the observation. &amp;nbsp;Is ID character or numeric?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 21:03:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/329897#M62585</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-02-03T21:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/329900#M62586</link>
      <description>&lt;P&gt;IDs are numeric for this dataset!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 21:13:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/329900#M62586</guid>
      <dc:creator>Dbynoe</dc:creator>
      <dc:date>2017-02-03T21:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/329905#M62587</link>
      <description>&lt;P&gt;Try it this way then:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if n(of _numeric_) &amp;lt;= 1 and cats(of _character_)=' ' then delete;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Technically, it might not be possible for the numerics to all be missing so the less than sign might not be needed. &amp;nbsp;But it caters to the possibility that ID might also be missing.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 21:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/329905#M62587</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-02-03T21:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/329906#M62588</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Can easily add character variables.

data have;
input ID r1 r2 r3 r17 r18 r19;
cards4;
1234 2 34 1 2 2 77
1234 2 35 0 2 2 77
1234 2 30 0 2 2 77
1234 2 37 0 2 2 77
1234 . . . . . .
1234 . . . . . .
1234 . . . . . .
1234 . . . . . .
1234 . . . . . .
1234 . . . . . .
1234 . . . . . .
1234 . . . . . .
1234 2 4 . . . .
1234 2 2 . . . .
;;;;
run;quit;


data want;
  set have;
  array nums[*] _numeric_;
  if cmiss(of nums[*]) ne (dim(nums)-1) then output;
run;quit;


Up to 40 obs WORK.WANT total obs=6

Obs ID R1 R2 R3 R17 R18 R19

 1 1234 2 34  1 2    2   77
 2 1234 2 35  0 2    2   77
 3 1234 2 30  0 2    2   77
 4 1234 2 37  0 2    2   77
 5 1234 2 4   . .    .   .
 6 1234 2 2   . .    .   .

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Feb 2017 21:21:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/329906#M62588</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2017-02-03T21:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330000#M62594</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127204"&gt;@Dbynoe&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you so much for the response! I really do appreciate it. The dataset I'm working with&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt; has more than 4000 varialbes&lt;/FONT&gt;&lt;/STRONG&gt;, do you perhaps know of a more time efficient ways of acheiving the same goal?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That many variables is often a symptom of a poor data structure or process design. If by any chance you have a process that is constantly adding new variables every week/month/ or other period then the process is flawed and should be reconsidered. It is much easier to work with data that has a variable to indicate processing period, date or source with the same variables and then use BY group processing. If you need a REPORT for people to read (4000 columns, really?) then report procedures such as Proc Report and Tabulate are very good at creating such things.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2017 03:36:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330000#M62594</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-05T03:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330263#M62598</link>
      <description>&lt;P&gt;Thank you so much for your response.&amp;nbsp;I copied your code and ran it, and it works just fine; however, it's not working for my dataset. Should the array num[*] _numeric_; &amp;nbsp;work if there are variables in the dataset that are both numeric and character? I tried using&amp;nbsp;&lt;SPAN&gt;array num[*] _all_; but SAS wasn't too happy with that.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 18:41:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330263#M62598</guid>
      <dc:creator>Dbynoe</dc:creator>
      <dc:date>2017-02-06T18:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330264#M62599</link>
      <description>&lt;P&gt;I didn't design the dataset, I just received it from a data coordination center my boss contracted. I'm trying to create 4 subsets of data from the larger dataset that are more accessible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This particular dataset is a Social Network Analysis, and provides information on many subjects and up to 48 alters for each subjects' network. For example, r1 is the question: "is this person male or female". There are 48 potential responses per subject. So the person who created the dataset provided one line of row per subject, so they created r1_1-r1_48 as variables that indicate the alter's sex, with each variable linked to a unique alter. There are a lot of questions, so that's one reason why there are so many variables in this dataset. I rearranged the dataset so that r1 now represents all the data from r1_1-r1_48...hence the repeated ID measures. It is a very messy dataset, so it's definitely forced me to learn a lot more about SAS than I expected!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 19:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330264#M62599</guid>
      <dc:creator>Dbynoe</dc:creator>
      <dc:date>2017-02-06T19:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330500#M62607</link>
      <description>&lt;P&gt;Because I have both numeric and character variables in the dataset I've tried this, but it was unsuccessful:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;array nums[*] _numeric_;&lt;BR /&gt;array char[*] _character_;&lt;BR /&gt;if cmiss(of nums[*]) ne ((dim(nums) and dim(char))-1) then output;&lt;BR /&gt;if cmiss(of char[*] ne ((dim(nums) and dim(char))-1) then output;&lt;BR /&gt;run;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any advice on how to correct the code? I've been working on this for about two weeks, and I really appreciate everyone's help! I'm hoping to finally finish the task today.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 15:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330500#M62607</guid>
      <dc:creator>Dbynoe</dc:creator>
      <dc:date>2017-02-07T15:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330513#M62608</link>
      <description>&lt;P&gt;I gave you a simple one-line solution last Friday.&amp;nbsp; Did you not try it?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330513#M62608</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-02-07T16:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330514#M62609</link>
      <description>&lt;P&gt;I tried it, and a few variations of it, but it didn't work. Perhaps I'm missing something on my end.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330514#M62609</guid>
      <dc:creator>Dbynoe</dc:creator>
      <dc:date>2017-02-07T16:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330518#M62610</link>
      <description>&lt;P&gt;Didn't work?&amp;nbsp; Does that mean gave you an error, or returned the wrong observations, or something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did just test it ... it's working for me.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330518#M62610</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-02-07T16:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330521#M62611</link>
      <description>&lt;P&gt;Sorry for not being clear. The output didn't change after running the code, and there are no "errors" on the log. The missing rows are stlil present.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330521#M62611</guid>
      <dc:creator>Dbynoe</dc:creator>
      <dc:date>2017-02-07T16:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330522#M62612</link>
      <description>&lt;P&gt;OK, post the exact statement you are adding.&amp;nbsp; There must be a small difference between that and what I posted.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:52:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330522#M62612</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-02-07T16:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330528#M62613</link>
      <description>&lt;P&gt;I copied and pasted your code into my program:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"&gt;if n(of _numeric_) &amp;lt;= 1 and cats(of _character_)=' ' then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"&gt;I also tried the following variations:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"&gt;if n(of _numeric_) &amp;lt; 1 and cats(of _character_)=' ' then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"&gt;if nmiss(of _numeric_) ge 1 and cats(of _character_)=' ' then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"&gt;&lt;SPAN&gt;if nmiss(of _numeric_) &amp;gt; 1 and cats(of _character_)=' ' then delete;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"&gt;if cmiss(of _numeric_) ge 1 and cats(of _character_)=' ' then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif;"&gt;&lt;SPAN&gt;if cmiss(of _numeric_) &amp;gt; 1 and cats(of _character_)=' ' then delete;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:57:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330528#M62613</guid>
      <dc:creator>Dbynoe</dc:creator>
      <dc:date>2017-02-07T16:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete empty row observations for data with multiple rows per subject</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330532#M62614</link>
      <description>&lt;P&gt;Ah, now the plot thickens.&amp;nbsp; The code looks fine, so the number one suspect is the data.&amp;nbsp; What looks like blanks for character values may not actually be blanks.&amp;nbsp; Take a few variables that appear to contain blanks, and print them in hex form.&amp;nbsp; For example, if a variable has a length of $ 5, print it (for just one observation):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;put varname varname $hex10.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dollars to doughnuts there will be some strange characters in there (hex nulls, carriage returns .... we'll find out).&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 17:02:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-empty-row-observations-for-data-with-multiple-rows/m-p/330532#M62614</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-02-07T17:02:14Z</dc:date>
    </item>
  </channel>
</rss>

