<?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: Exporting / Migrate SAS Special Missing Values to other databases in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Exporting-Migrate-SAS-Special-Missing-Values-to-other-databases/m-p/632545#M187548</link>
    <description>&lt;P&gt;Since you seem to not know much about this data, and have no control over the source, I would go the other route: create a special value for each missing value.&lt;/P&gt;
&lt;P&gt;There are 28 possible missing values. Create a mapping for each and you'll never be surprised if the data includes more values in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2020 00:07:11 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-03-17T00:07:11Z</dc:date>
    <item>
      <title>Exporting / Migrate SAS Special Missing Values to other databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-Migrate-SAS-Special-Missing-Values-to-other-databases/m-p/631083#M186911</link>
      <description>&lt;P&gt;I have special missing values from .A to .Z in my SAS datasets and we are in the process of migrating them to HADOOP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data will be stored on HADOOP and will be accessed through other tools.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have knowledge of how are these values are supposed to be stored in HADOOP or other databases.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How should they be treated when stored on other databases?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 20:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-Migrate-SAS-Special-Missing-Values-to-other-databases/m-p/631083#M186911</guid>
      <dc:creator>Sanjay_M</dc:creator>
      <dc:date>2020-03-10T20:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting / Migrate SAS Special Missing Values to other databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-Migrate-SAS-Special-Missing-Values-to-other-databases/m-p/631153#M186961</link>
      <description>&lt;P&gt;They should be stored as NULL. But you then lose some information as all missing values become the same.&lt;/P&gt;
&lt;P&gt;If you want to keep the detail, you have to decide on how to address that. Add an extra column? Store as invalid values like -9999?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 04:21:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-Migrate-SAS-Special-Missing-Values-to-other-databases/m-p/631153#M186961</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-03-11T04:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting / Migrate SAS Special Missing Values to other databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-Migrate-SAS-Special-Missing-Values-to-other-databases/m-p/631502#M187114</link>
      <description>&lt;P&gt;Thanks Chris. I think that is one way to represent your special missing values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 10:01:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-Migrate-SAS-Special-Missing-Values-to-other-databases/m-p/631502#M187114</guid>
      <dc:creator>Sanjay_M</dc:creator>
      <dc:date>2020-03-12T10:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting / Migrate SAS Special Missing Values to other databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-Migrate-SAS-Special-Missing-Values-to-other-databases/m-p/632388#M187487</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to get a unique list of special missing values from the data?&lt;/P&gt;
&lt;P&gt;I have 300 variables in my dataset and want to identify the unique values each variable has.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 10:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-Migrate-SAS-Special-Missing-Values-to-other-databases/m-p/632388#M187487</guid>
      <dc:creator>Sanjay_M</dc:creator>
      <dc:date>2020-03-16T10:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting / Migrate SAS Special Missing Values to other databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-Migrate-SAS-Special-Missing-Values-to-other-databases/m-p/632545#M187548</link>
      <description>&lt;P&gt;Since you seem to not know much about this data, and have no control over the source, I would go the other route: create a special value for each missing value.&lt;/P&gt;
&lt;P&gt;There are 28 possible missing values. Create a mapping for each and you'll never be surprised if the data includes more values in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 00:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-Migrate-SAS-Special-Missing-Values-to-other-databases/m-p/632545#M187548</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-03-17T00:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting / Migrate SAS Special Missing Values to other databases</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-Migrate-SAS-Special-Missing-Values-to-other-databases/m-p/632570#M187556</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/494"&gt;@Sanjay_M&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to get a unique list of special missing values from the data?&lt;/P&gt;
&lt;P&gt;I have 300 variables in my dataset and want to identify the unique values each variable has.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Below an idea how you could create such a report without having to code much.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  set sashelp.class;
  if _n_=5 then age=.a;
  if _n_=3 then age=.x;
  if _n_=7 then 
    do;
      age=.a;
      height=.x;
    end;
  if _n_=1 then height=.y;
run;

ods _all_ close;
ods output MissingValues=want(keep= varname missvalue count where=(missvalue ne 0));
proc univariate data=test;
run;
ods output close;

ods listing; 
title 'Numerical vars with special missings';
proc print data=want;
run;
title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As for special missing values in Hadoop for consumption also by 3rd party applications:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS special missings are a SAS thing so I guess you would have to recode them if not storing the data in SAS SPDE format in Hadoop (which only SAS can read). You could create a format for such recoding and then just pre-process the SAS table before loading into Hadoop.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 04:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-Migrate-SAS-Special-Missing-Values-to-other-databases/m-p/632570#M187556</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-03-17T04:45:26Z</dc:date>
    </item>
  </channel>
</rss>

