<?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 Handling missing values or null value in raw data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Handling-missing-values-or-null-value-in-raw-data/m-p/64816#M14084</link>
    <description>How can I handle the missing values in a field (VSTMD) thats a varchar datatype (sql table raw data) and that has to be written into a numeric SAS date field? Since it has "null" value, SAS considers as both character and numeric variable. How can this be resolved?</description>
    <pubDate>Tue, 17 Aug 2010 16:32:22 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-08-17T16:32:22Z</dc:date>
    <item>
      <title>Handling missing values or null value in raw data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Handling-missing-values-or-null-value-in-raw-data/m-p/64816#M14084</link>
      <description>How can I handle the missing values in a field (VSTMD) thats a varchar datatype (sql table raw data) and that has to be written into a numeric SAS date field? Since it has "null" value, SAS considers as both character and numeric variable. How can this be resolved?</description>
      <pubDate>Tue, 17 Aug 2010 16:32:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Handling-missing-values-or-null-value-in-raw-data/m-p/64816#M14084</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-17T16:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Handling missing values or null value in raw data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Handling-missing-values-or-null-value-in-raw-data/m-p/64817#M14085</link>
      <description>A SAS variable is either CHARACTER or NUMERIC, in type.  Normally the SAS CHARACTER type variable is either blank or non-blank, and a SAS NUMERIC type variable is either considered to have a MISSING value or a non-MISSING value.&lt;BR /&gt;
&lt;BR /&gt;
Since SAS DATE / DATETIME variables are NUMERIC type, you can set a missing value, such as MYDATE=.  or if you attempt to use the INPUT function to convert a string to a date and the input-data is invalid, SAS will set the automatic variable _ERROR_=1  which is an indication of a problem - in addition to SAS setting the variable to a missing value, as well.&lt;BR /&gt;
&lt;BR /&gt;
There is a MISSING function you may find the opportunity to use - check the SAS DOC.&lt;BR /&gt;
&lt;BR /&gt;
Also, suggest reviewing the DOC on SAS variables.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
sas variable missing value site:sas.com</description>
      <pubDate>Tue, 17 Aug 2010 18:22:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Handling-missing-values-or-null-value-in-raw-data/m-p/64817#M14085</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-08-17T18:22:13Z</dc:date>
    </item>
  </channel>
</rss>

