<?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: Missing Value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Missing-Value/m-p/513268#M138287</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 15 Nov 2018 12:32:04 GMT</pubDate>
    <dc:creator>BalajiBollu</dc:creator>
    <dc:date>2018-11-15T12:32:04Z</dc:date>
    <item>
      <title>Missing Value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-Value/m-p/513263#M138285</link>
      <description>&lt;P&gt;I have a numeric variable and it has some missing values (represented as '.')... I want to convert it as a character variable with a length 1. But i don't want '.' to be converted as '.' itself instead i need it to be a space (missing notation for character variable). How to do this?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 12:18:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-Value/m-p/513263#M138285</guid>
      <dc:creator>BalajiBollu</dc:creator>
      <dc:date>2018-11-15T12:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-Value/m-p/513265#M138286</link>
      <description>&lt;P&gt;Since the character variable will be initialized to blank anyway, you need only make the put() conditional:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if numvar ne . then charvar = put(numvar,1.);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Nov 2018 12:28:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-Value/m-p/513265#M138286</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-15T12:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-Value/m-p/513268#M138287</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 12:32:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-Value/m-p/513268#M138287</guid>
      <dc:creator>BalajiBollu</dc:creator>
      <dc:date>2018-11-15T12:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-Value/m-p/513277#M138289</link>
      <description>&lt;P&gt;Another useful method - if you have to do lots of these, is to set options missing before and after the code:&lt;/P&gt;
&lt;PRE&gt;options missing="";

...your code...

options missing=".";&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Nov 2018 12:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-Value/m-p/513277#M138289</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-11-15T12:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-Value/m-p/513388#M138327</link>
      <description>&lt;P&gt;A third option is to use a custom format. Example&lt;/P&gt;
&lt;PRE&gt;proc format ;
value myvalue
low-high=[best8.]
other=' '
;
run;&lt;/PRE&gt;
&lt;P&gt;Using the above format would display all non-missing values using the best8. SAS format, any other format could be used inside the [ ] and other values as a blank. This approach has the advantage of allowing you to display more characters without changing any variable lengths that a character value would but will appear in the output. Changing the format to, or creating a different format that is similar, to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format ;
value myvalue
low-high=[best8.]
other='Not Recorded'
;
run;&lt;/PRE&gt;
&lt;P&gt;would display "Not Recorded" or perhaps other more meaningful text&amp;nbsp;in output for the missing values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 16:01:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-Value/m-p/513388#M138327</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-11-15T16:01:02Z</dc:date>
    </item>
  </channel>
</rss>

