<?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 Report, how to change the '.' or '' of missing values to 'Unknown' in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-how-to-change-the-or-of-missing-values-to-Unknown/m-p/926732#M364700</link>
    <description>&lt;P&gt;If you're already using a SAS supplied format like percent. below sample code to demonstrate how you can extend it for a missing case.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
  value missToUnknown
    . = 'Unknown'
    other=[percent.]
    ;
run;

data demo;
  do var=-0.5,.,0,0.5;
    output;
  end;
run;

proc print data=demo;
  format var missToUnknown.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1714627126174.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96124i67EC5EABD985487A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1714627126174.png" alt="Patrick_0-1714627126174.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2024 05:19:44 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2024-05-02T05:19:44Z</dc:date>
    <item>
      <title>Proc Report, how to change the '.' or '' of missing values to 'Unknown'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-how-to-change-the-or-of-missing-values-to-Unknown/m-p/926701#M364689</link>
      <description>&lt;P&gt;In proc report, how do i get the '.'&amp;nbsp; value to be displayed as 'unknown', rather than the missing indicator (see table below).&amp;nbsp; For character variables i could simply change all missing values to 'unknown' in the dataset, but i cannot do that with numerical vars.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mcook_0-1714606895159.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96112i366D5F92A83FF5ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mcook_0-1714606895159.png" alt="mcook_0-1714606895159.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 23:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-how-to-change-the-or-of-missing-values-to-Unknown/m-p/926701#M364689</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2024-05-01T23:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report, how to change the '.' or '' of missing values to 'Unknown'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-how-to-change-the-or-of-missing-values-to-Unknown/m-p/926705#M364692</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Use PROC FORMAT before proc report, then apply created format in proc report to display&amp;nbsp; the missing value as 'unknown'.&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2024 23:58:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-how-to-change-the-or-of-missing-values-to-Unknown/m-p/926705#M364692</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2024-05-01T23:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report, how to change the '.' or '' of missing values to 'Unknown'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-how-to-change-the-or-of-missing-values-to-Unknown/m-p/926732#M364700</link>
      <description>&lt;P&gt;If you're already using a SAS supplied format like percent. below sample code to demonstrate how you can extend it for a missing case.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
  value missToUnknown
    . = 'Unknown'
    other=[percent.]
    ;
run;

data demo;
  do var=-0.5,.,0,0.5;
    output;
  end;
run;

proc print data=demo;
  format var missToUnknown.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1714627126174.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96124i67EC5EABD985487A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1714627126174.png" alt="Patrick_0-1714627126174.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 05:19:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-how-to-change-the-or-of-missing-values-to-Unknown/m-p/926732#M364700</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-05-02T05:19:44Z</dc:date>
    </item>
  </channel>
</rss>

