<?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: Modify Statement - How do I update with Null Values? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Modify-Statement-How-do-I-update-with-Null-Values/m-p/46153#M9540</link>
    <description>Investigate using the UPDATEMODE=MISSINGCHECK|NOMISSINGCHECK parameter on the MODIFY statement to influence the missing-value handling behavior.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Mon, 15 Sep 2008 16:08:55 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2008-09-15T16:08:55Z</dc:date>
    <item>
      <title>Modify Statement - How do I update with Null Values?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-Statement-How-do-I-update-with-Null-Values/m-p/46151#M9538</link>
      <description>I'm using a modify statement to update a master dataset with a transaction dataset, but I've found that null values in a field will not overwrite the corresponding non-null field.  Is there an option or something to force null values to overwrite a non-null value when updating a record?&lt;BR /&gt;
&lt;BR /&gt;
Here's the code I'm using:&lt;BR /&gt;
&lt;BR /&gt;
data as400.ucl;&lt;BR /&gt;
   modify as400.ucl as400.ucl_update;&lt;BR /&gt;
   by claimno claimline;&lt;BR /&gt;
   if _iorc_=%sysrc(_sok) then replace;&lt;BR /&gt;
   else if _iorc_=%sysrc(_dsenmr) then do;	&lt;BR /&gt;
       output;  _error_=0; end;&lt;BR /&gt;
   else do; put "Unexpected error at Observation: " _n_; _error_=0; stop; end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
So here's the situation: a record for a given claim number and claim line already exists in the master dataset, and the "Reject" field contains a value.  I get an updated record in my update dataset (the transaction dataset) for the same claim number and claim line, but the "Reject" field is now null.  When I try to update my master dataset, the Reject field containing a value will not seem to accept being changed to a null value.  If I had a different &lt;I&gt;value&lt;/I&gt;, then the field would be changed to that, but not to a null.  The REPLACE statement is supposed to replace the observation in the master dataset with the observation from the transaction dataset, but this does not seem to be the case with null values.  Please help.</description>
      <pubDate>Mon, 15 Sep 2008 14:20:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-Statement-How-do-I-update-with-Null-Values/m-p/46151#M9538</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-15T14:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement - How do I update with Null Values?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-Statement-How-do-I-update-with-Null-Values/m-p/46152#M9539</link>
      <description>use the option UPDATEMODE=NOMISSINGCHECK &lt;BR /&gt;
in the modify statment line;&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
Darryl</description>
      <pubDate>Mon, 15 Sep 2008 16:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-Statement-How-do-I-update-with-Null-Values/m-p/46152#M9539</guid>
      <dc:creator>darrylovia</dc:creator>
      <dc:date>2008-09-15T16:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement - How do I update with Null Values?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-Statement-How-do-I-update-with-Null-Values/m-p/46153#M9540</link>
      <description>Investigate using the UPDATEMODE=MISSINGCHECK|NOMISSINGCHECK parameter on the MODIFY statement to influence the missing-value handling behavior.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 15 Sep 2008 16:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-Statement-How-do-I-update-with-Null-Values/m-p/46153#M9540</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-09-15T16:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Statement - How do I update with Null Values?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-Statement-How-do-I-update-with-Null-Values/m-p/46154#M9541</link>
      <description>Excellent!  Worked like a charm.  Thanks!  Don't know why that option wasn't mentioned anywhere in the online documentation for the Modify statement.</description>
      <pubDate>Tue, 16 Sep 2008 16:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-Statement-How-do-I-update-with-Null-Values/m-p/46154#M9541</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-16T16:45:29Z</dc:date>
    </item>
  </channel>
</rss>

