<?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: Not null variable produces Null values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Not-null-variable-produces-Null-values/m-p/624136#M183803</link>
    <description>&lt;P&gt;"&lt;EM&gt;There are two fields which are defined as Null in SQL but after loading I could see the Null values.&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;What does that mean? There had been blanks instead of NULL? Or the SCD2 loader loaded a change record even though nothing changed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS not having a concept of NULL will make things really hard. The md5 digest value gets created on the SAS side so I would assume that a change from blank to NULL (or the other way round) wouldn't create a change record as for SAS it's both times a blank.&lt;/P&gt;
&lt;P&gt;How a missing/blank then gets inserted into the DB (as blank or as NULL) will depend on your option settings (NULLCHAR, NULLCHARVAL).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2020 10:20:55 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2020-02-12T10:20:55Z</dc:date>
    <item>
      <title>Not null variable produces Null values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-null-variable-produces-Null-values/m-p/624118#M183792</link>
      <description>&lt;P&gt;I'm loading the data from SAS to SQL table via SCD type 2 loader. There are two fields which are defined as Null in SQL but after loading I could see the Null values. These&amp;nbsp; two fields are not Primary key in SQL and it is under 'Detect changes' in SCD type 2 from SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I know what might be the potential cause for this issue?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 09:32:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-null-variable-produces-Null-values/m-p/624118#M183792</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2020-02-12T09:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Not null variable produces Null values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-null-variable-produces-Null-values/m-p/624136#M183803</link>
      <description>&lt;P&gt;"&lt;EM&gt;There are two fields which are defined as Null in SQL but after loading I could see the Null values.&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;What does that mean? There had been blanks instead of NULL? Or the SCD2 loader loaded a change record even though nothing changed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS not having a concept of NULL will make things really hard. The md5 digest value gets created on the SAS side so I would assume that a change from blank to NULL (or the other way round) wouldn't create a change record as for SAS it's both times a blank.&lt;/P&gt;
&lt;P&gt;How a missing/blank then gets inserted into the DB (as blank or as NULL) will depend on your option settings (NULLCHAR, NULLCHARVAL).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 10:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-null-variable-produces-Null-values/m-p/624136#M183803</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-02-12T10:20:55Z</dc:date>
    </item>
  </channel>
</rss>

