<?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: Proc SQL Varchar fields in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Varchar-fields/m-p/794895#M254910</link>
    <description>&lt;P&gt;Try this: where MyVar is (not) missing&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 00:01:12 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-02-08T00:01:12Z</dc:date>
    <item>
      <title>Proc SQL Varchar fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Varchar-fields/m-p/794890#M254906</link>
      <description>&lt;P&gt;I have been running my SQL in SQL Server. I created a Proc SQL statement in SAS. The where statement for SQL Server specifies IS NULL and&amp;nbsp;is not NULL for a individual varchar fields. What is the best way to add this criteria in SAS?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 23:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Varchar-fields/m-p/794890#M254906</guid>
      <dc:creator>Maura001</dc:creator>
      <dc:date>2022-02-07T23:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL Varchar fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Varchar-fields/m-p/794894#M254909</link>
      <description>&lt;P&gt;SAS treats them as missing. Note that you can still use NULL in your SQL queries but the MISSING() function is likely what you want to use. And conveniently the same for numeric/varchar.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where value is null;
where value is not null;

where missing(variable)
where not missing(variable);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/371040"&gt;@Maura001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have been running my SQL in SQL Server. I created a Proc SQL statement in SAS. The where statement for SQL Server specifies IS NULL and&amp;nbsp;is not NULL for a individual varchar fields. What is the best way to add this criteria in SAS?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 23:56:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Varchar-fields/m-p/794894#M254909</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-07T23:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL Varchar fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Varchar-fields/m-p/794895#M254910</link>
      <description>&lt;P&gt;Try this: where MyVar is (not) missing&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 00:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL-Varchar-fields/m-p/794895#M254910</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-02-08T00:01:12Z</dc:date>
    </item>
  </channel>
</rss>

