<?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 How to convert multiple special missing to regular missing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-multiple-special-missing-to-regular-missing/m-p/452764#M114300</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a SAS dataset (dataset name= Gold) with special missing (.A .B .D) in 400 various variables (such as Age, Weight, Sex, Race).&amp;nbsp;&lt;/P&gt;&lt;P&gt;A colleague who uses SPSS will be using this dataset and when I export it to a CSV file, the special missing appears as text (A B D etc).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will appreciate help converting all the special missing to regular missing (.) in the various variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sackey&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 11:15:10 GMT</pubDate>
    <dc:creator>sackey</dc:creator>
    <dc:date>2018-04-10T11:15:10Z</dc:date>
    <item>
      <title>How to convert multiple special missing to regular missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-multiple-special-missing-to-regular-missing/m-p/452764#M114300</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a SAS dataset (dataset name= Gold) with special missing (.A .B .D) in 400 various variables (such as Age, Weight, Sex, Race).&amp;nbsp;&lt;/P&gt;&lt;P&gt;A colleague who uses SPSS will be using this dataset and when I export it to a CSV file, the special missing appears as text (A B D etc).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will appreciate help converting all the special missing to regular missing (.) in the various variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sackey&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 11:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-multiple-special-missing-to-regular-missing/m-p/452764#M114300</guid>
      <dc:creator>sackey</dc:creator>
      <dc:date>2018-04-10T11:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert multiple special missing to regular missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-multiple-special-missing-to-regular-missing/m-p/452766#M114302</link>
      <description>&lt;P&gt;You can use an ARRAY to go through all variables and convert them to regular missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    array check a b c d e; /* Your actual variable names go here */
    do i=1 to dim(check);
        if missing(check(i)) then check(i)=.;
    end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Apr 2018 11:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-multiple-special-missing-to-regular-missing/m-p/452766#M114302</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-04-10T11:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert multiple special missing to regular missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-multiple-special-missing-to-regular-missing/m-p/452769#M114304</link>
      <description>&lt;P&gt;If you have in a column a character like '&lt;STRONG&gt;A'&amp;nbsp;&lt;/STRONG&gt; - how can you know if it is the '&lt;STRONG&gt;.A'&lt;/STRONG&gt; in origin (i.e. missing value) or the real '&lt;STRONG&gt;A'&lt;/STRONG&gt; character ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case all thus variables shuould be numeric then you can check for numbers (digits) otherwise it is a missing value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 11:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-multiple-special-missing-to-regular-missing/m-p/452769#M114304</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-04-10T11:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert multiple special missing to regular missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-multiple-special-missing-to-regular-missing/m-p/452776#M114307</link>
      <description>Thank you for your input. In this dataset, there are are no characters like 'A' which could be mixed up with a '.A' missing.</description>
      <pubDate>Tue, 10 Apr 2018 12:07:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-multiple-special-missing-to-regular-missing/m-p/452776#M114307</guid>
      <dc:creator>sackey</dc:creator>
      <dc:date>2018-04-10T12:07:00Z</dc:date>
    </item>
  </channel>
</rss>

