<?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: getting missing values while running proc sort in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/getting-missing-values-while-running-proc-sort/m-p/498258#M72512</link>
    <description>&lt;P&gt;Post your log please? And run a PROC FREQ on your data before and after your sort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess is that the sort is performed correctly, but the sort brings the missing values to the top.&lt;/P&gt;</description>
    <pubDate>Sun, 23 Sep 2018 19:26:38 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-09-23T19:26:38Z</dc:date>
    <item>
      <title>getting missing values while running proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/getting-missing-values-while-running-proc-sort/m-p/498257#M72511</link>
      <description>&lt;P&gt;I am getting missing values in every column of my data set after running this below proc sort code.&lt;/P&gt;&lt;P&gt;can anyone help me with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc sort data=lib.grocery_couponsx out=sorted_freq;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;by gender;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data set is created successfully but allover missing values.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 19:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/getting-missing-values-while-running-proc-sort/m-p/498257#M72511</guid>
      <dc:creator>Ananyayadav</dc:creator>
      <dc:date>2018-09-23T19:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: getting missing values while running proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/getting-missing-values-while-running-proc-sort/m-p/498258#M72512</link>
      <description>&lt;P&gt;Post your log please? And run a PROC FREQ on your data before and after your sort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess is that the sort is performed correctly, but the sort brings the missing values to the top.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 19:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/getting-missing-values-while-running-proc-sort/m-p/498258#M72512</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-09-23T19:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: getting missing values while running proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/getting-missing-values-while-running-proc-sort/m-p/498259#M72513</link>
      <description>&lt;P&gt;Proc sort does not change any values, only the order. So your problem happens before this sort step.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 19:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/getting-missing-values-while-running-proc-sort/m-p/498259#M72513</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-23T19:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: getting missing values while running proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/getting-missing-values-while-running-proc-sort/m-p/498261#M72514</link>
      <description>&lt;P&gt;A very useful habit to get into is to actually look, with your own eyes, at the data set that is giving the unexpected result (in this case lib.grocery_coupons) to see if there are missings present. You can use PROC PRINT or PROC FREQ or Viewtable (and probably other tools) to see what is in the data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, I'm sure looking at the data set would solve your problem.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 20:23:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/getting-missing-values-while-running-proc-sort/m-p/498261#M72514</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-09-23T20:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: getting missing values while running proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/getting-missing-values-while-running-proc-sort/m-p/498262#M72515</link>
      <description>&lt;P&gt;I had errored in my&amp;nbsp;prior statement where I had said proc sort, I meant proc freq as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt; has noted.&lt;/P&gt;&lt;P&gt;correction is, one way that I check to confirm I have data is by using proc freq:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=lib.grocery_couponsx;
tables gender / missing out=sorted_freq;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by using the&amp;nbsp;&lt;STRONG&gt; / missing&lt;/STRONG&gt; I get a count of records with missing values in my output.&amp;nbsp; If I am ok with them being there I leave them else I delete them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the missing option with proc freq to see if records are slipping past me.&amp;nbsp; Sorry to the community for any miss leading understanding this may have created.&lt;/P&gt;&lt;P&gt;corrected code statement should have been.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 02:34:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/getting-missing-values-while-running-proc-sort/m-p/498262#M72515</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-24T02:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: getting missing values while running proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/getting-missing-values-while-running-proc-sort/m-p/498270#M72516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122002"&gt;@VDD&lt;/a&gt;&amp;nbsp;Your code is incorrect as there isn't ant /missing option in a proc sort. I think you prolly meant proc freq. Kindly verify the documentation online. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 01:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/getting-missing-values-while-running-proc-sort/m-p/498270#M72516</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-09-24T01:55:40Z</dc:date>
    </item>
  </channel>
</rss>

