<?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: checking null in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137918#M295995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys - i think i can do this and it will run query fast from bigger data....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc dataset library=woo;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; modify=test /*dataset*/;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index create age;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index create sex;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data xyz;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where age=20 or 50 and sex='m';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jan 2014 01:25:07 GMT</pubDate>
    <dc:creator>woo</dc:creator>
    <dc:date>2014-01-14T01:25:07Z</dc:date>
    <item>
      <title>checking null</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137913#M295990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need help and wonder what is the best way to check null values in sas datasets for all variables? &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;and if exist then create index variable for it and then may be use Where statement to pull out...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 20:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137913#M295990</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-01-10T20:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: checking null</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137914#M295991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you actually trying to do here? Get all records where any variable is null or missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 20:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137914#M295991</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-01-10T20:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: checking null</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137915#M295992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry Reeza i am new at SAS so sometime i don't know how to explain it...BUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want get records for any null value in variable and then create index for that variable...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 20:45:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137915#M295992</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-01-10T20:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: checking null</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137916#M295993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post some sample data and sample output please. Also clarify what you mean by index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could guess but if I was wrong this whole thing would repeat, so I'd rather not. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 20:49:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137916#M295993</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-01-10T20:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: checking null</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137917#M295994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to find the observations that have missing values for a particular variable then you can use the WHERE statement. You can use it in any PROC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=have ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; where age=. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var ht wt ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 21:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137917#M295994</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-01-10T21:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: checking null</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137918#M295995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys - i think i can do this and it will run query fast from bigger data....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc dataset library=woo;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; modify=test /*dataset*/;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index create age;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index create sex;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data xyz;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where age=20 or 50 and sex='m';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 01:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137918#M295995</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-01-14T01:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: checking null</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137919#M295996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not following you, now you are not testing for null....?&lt;/P&gt;&lt;P&gt;Besides, I think at least the Base engine will have problems optimize (use the index) your example query.&lt;/P&gt;&lt;P&gt;Creating a composite index using the SPDE engine could work (not sure).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 09:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137919#M295996</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-01-14T09:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: checking null</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137920#M295997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS will attempt to use the index if it is available.&amp;nbsp; You can set option MSGLEVEL=I&amp;nbsp; (that's the letter i for information) to have SAS report index usage.&lt;/P&gt;&lt;P&gt;Your WHERE clause syntax is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;where (age=20 or age=50) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; and (sex='m')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 14:37:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137920#M295997</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-01-14T14:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: checking null</title>
      <link>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137921#M295998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try this i guess....&lt;/P&gt;&lt;P&gt;/*this way you will get missing &amp;amp; not missing value for all variables*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value $missfmt&amp;nbsp; ' '&amp;nbsp; ='missing' other=' not missing';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value missfmt&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp; = 'missing' other='not missing';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format data= work.test; /*your test dataset goes here*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format _char_ $missfmt. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table _char_ /missing nocum nopercent missprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format _numeric_ missfmt.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table _numeric_/missing nocum nopercent missprint;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/****gd lk!!!***/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 00:32:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/checking-null/m-p/137921#M295998</guid>
      <dc:creator>sas_9</dc:creator>
      <dc:date>2014-01-17T00:32:16Z</dc:date>
    </item>
  </channel>
</rss>

