<?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 NOTNULL in DICTIONARY in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/NOTNULL-in-DICTIONARY/m-p/906217#M357844</link>
    <description>&lt;P&gt;Good moring.&amp;nbsp;I would like to understand what the "NOTNULL" variable&amp;nbsp;in the dictionary.column means. I see that it is always evaluated as NO, without distinction both in the null case and in the case it is evaluated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1;
x=2;
run;
data test2;
x=.;
run;
proc sql;
   create table columns as
   select memname,libname,type,notnull, name from dictionary.columns
    where libname = "WORK" and memname like "TEST%";
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 05 Dec 2023 10:39:49 GMT</pubDate>
    <dc:creator>mariopellegrini</dc:creator>
    <dc:date>2023-12-05T10:39:49Z</dc:date>
    <item>
      <title>NOTNULL in DICTIONARY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/NOTNULL-in-DICTIONARY/m-p/906217#M357844</link>
      <description>&lt;P&gt;Good moring.&amp;nbsp;I would like to understand what the "NOTNULL" variable&amp;nbsp;in the dictionary.column means. I see that it is always evaluated as NO, without distinction both in the null case and in the case it is evaluated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1;
x=2;
run;
data test2;
x=.;
run;
proc sql;
   create table columns as
   select memname,libname,type,notnull, name from dictionary.columns
    where libname = "WORK" and memname like "TEST%";
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Dec 2023 10:39:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/NOTNULL-in-DICTIONARY/m-p/906217#M357844</guid>
      <dc:creator>mariopellegrini</dc:creator>
      <dc:date>2023-12-05T10:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: NOTNULL in DICTIONARY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/NOTNULL-in-DICTIONARY/m-p/906222#M357845</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/3574"&gt;@mariopellegrini&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this variable is about &lt;A href="https://documentation.sas.com/doc/en/lrcon/9.4/p0te4txy6dyzs9n1csptlqoktu7m.htm" target="_blank" rel="noopener"&gt;integrity constraints&lt;/A&gt;: If an integrity constraint "NOT NULL" or "PRIMARY KEY" exists for the dataset variable in question, then NOTNULL='yes'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create such an integrity constraint:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=work nolist;
modify test1;
ic create not null(x);
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now &lt;FONT face="courier new,courier"&gt;dictionary.columns&lt;/FONT&gt; shows:&lt;/P&gt;
&lt;PRE&gt;memname    libname    type    notnull    name

 TEST1      WORK      num       &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;yes&lt;/STRONG&gt;&lt;/FONT&gt;       x
 TEST2      WORK      num       no        x&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Dec 2023 11:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/NOTNULL-in-DICTIONARY/m-p/906222#M357845</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-12-05T11:02:48Z</dc:date>
    </item>
  </channel>
</rss>

