<?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: Set all missing values to NULL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273564#M269539</link>
    <description>&lt;P&gt;That information is already lost by the time the data has arrived in SAS. &amp;nbsp;The value of . means it is a missing value for a numeric variable, but it doesn't tell you what was in the Hive table. &amp;nbsp;It might have been hex 00, or it might have been anything else under the sun that SAS can't interpret as a numeric. &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2016 11:41:21 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-05-27T11:41:21Z</dc:date>
    <item>
      <title>Set all missing values to NULL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273558#M269535</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to replace all the missing values (.) to NULL&lt;/P&gt;&lt;P&gt;i tried the below one and also need to replace all the dot values in the particular field to be replaced as NULL&lt;/P&gt;&lt;P&gt;Below query is not working .please let me know how to modify this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data yourdata;&lt;BR /&gt;set test.t_eticket(drop=subject);&lt;BR /&gt;if ci_id =. then ci_id1="NULL" ;&lt;BR /&gt;run ;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 11:14:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273558#M269535</guid>
      <dc:creator>goms</dc:creator>
      <dc:date>2016-05-27T11:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set all missing values to NULL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273559#M269536</link>
      <description>&lt;P&gt;Are you interested in seeing the word NULL or looking for a Nukl value which would be a space?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thats not how,SAS represents data, missing is equivalent to Null.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why are you trying to do this?&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 11:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273559#M269536</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-27T11:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set all missing values to NULL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273561#M269537</link>
      <description>&lt;P&gt;You can't store a set of characters in a numeric variable. &amp;nbsp;But there are a couple of things you can try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Special missing values:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if ci_id=. then ci_id=.N;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now the missings will print as "N"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you could create and apply a format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format;&lt;/P&gt;
&lt;P&gt;value missnull .='NULL';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;proc print data=test.t_eticket;&lt;/P&gt;
&lt;P&gt;format ci_id missnull.;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That will change what prints, without changing the actual value of the variable.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 11:25:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273561#M269537</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-05-27T11:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set all missing values to NULL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273563#M269538</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would like to see the value as NULL as the data come from source is empty string and loaded as NULL in HIve table&lt;/P&gt;&lt;P&gt;when i establish a connection with hive and execute the query in SAS .it shows dot value&lt;/P&gt;&lt;P&gt;End user wants to seet he result as an exact match with source&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 11:32:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273563#M269538</guid>
      <dc:creator>goms</dc:creator>
      <dc:date>2016-05-27T11:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set all missing values to NULL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273564#M269539</link>
      <description>&lt;P&gt;That information is already lost by the time the data has arrived in SAS. &amp;nbsp;The value of . means it is a missing value for a numeric variable, but it doesn't tell you what was in the Hive table. &amp;nbsp;It might have been hex 00, or it might have been anything else under the sun that SAS can't interpret as a numeric. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 11:41:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273564#M269539</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-05-27T11:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set all missing values to NULL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273566#M269540</link>
      <description>&lt;P&gt;When the data in hive is an empty &lt;U&gt;&lt;STRONG&gt;string&lt;/STRONG&gt;&lt;/U&gt; it is &lt;U&gt;not&lt;/U&gt; numeric. It should then be imported into SAS as character, which would preserve the empty string.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 11:44:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273566#M269540</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-05-27T11:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set all missing values to NULL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273567#M269541</link>
      <description>&lt;P&gt;If it is a string then why does it look like '.' in SAS? &amp;nbsp;An empty string in SAS will just print as blank(s).&lt;/P&gt;
&lt;P&gt;Is your variable actually a number? &amp;nbsp;or has HIVE or SAS converted it to a number?&lt;/P&gt;
&lt;P&gt;If it is a number then . is a missing (or what other systems would call null) value. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you want to print is as the keyword NULL instead? &amp;nbsp;Are you planning to transfer it back to some other system?&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 11:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273567#M269541</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-05-27T11:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set all missing values to NULL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273568#M269542</link>
      <description>&lt;P&gt;Why? &amp;nbsp;NULL in SAS terms would mean a string of 4 characters "NULL". &amp;nbsp;Is does not mean an empty which is what you think it does. &amp;nbsp;Remember each package has their own concepts.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 11:52:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Set-all-missing-values-to-NULL/m-p/273568#M269542</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-05-27T11:52:27Z</dc:date>
    </item>
  </channel>
</rss>

