<?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: How to make &amp;quot;D&amp;quot; &amp;quot;P&amp;quot; &amp;quot;M&amp;quot; as missing value? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872928#M344898</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/439162"&gt;@nwang5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;It's numeric&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If your data set has those variables as NUMERIC and display values like D P or M then it is very likely that your value is already missing but has had the special missing assigned. While we typically only see the . for missing value SAS has an additional 27 special missing values that are assigned as a dot followed by a letter or the underscore character. This feature is often used to designate numeric values that are missing for a specific reason. If this is survey or question results I might think that the .D was assigned when a response was "Don't Know".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can check my thought by running code like:&lt;/P&gt;
&lt;PRE&gt;ods select nlevels;
proc freq data=yourdatasetname nlevels;
   tables cesd3; /* of if you want results for all the variables the cesd: &amp;lt;the colon is a wildcard for names starting with cesd*/
run;&lt;/PRE&gt;
&lt;P&gt;The ODS select is to just show the nlevels table. The output table will show a summary of counts of levels and missing&lt;/P&gt;
&lt;P&gt;An example: The data step shows one way to read data with special missing into numeric values. If you open the Have table you will see P M an D&lt;/P&gt;
&lt;PRE&gt;data have;
  input x y;
datalines;
1 .M
.P 3
1  .P
1 .D
. .
;

ods select nlevels;
proc freq data=have nlevels;
   tables x y;
run;&lt;/PRE&gt;
&lt;P&gt;The output:&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;
&lt;TABLE class="table" summary="Procedure Freq: NLevels" cellspacing="0" cellpadding="3"&gt;&lt;COLGROUP&gt; &lt;COL /&gt;&lt;/COLGROUP&gt; &lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c m header" colspan="4" scope="colgroup"&gt;Number of Variable Levels&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l m header" scope="col"&gt;Variable&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;Levels&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;Missing Levels&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;Nonmissing Levels&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="row"&gt;x&lt;/TH&gt;
&lt;TD class="r data"&gt;3&lt;/TD&gt;
&lt;TD class="r data"&gt;2&lt;/TD&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="row"&gt;y&lt;/TH&gt;
&lt;TD class="r data"&gt;5&lt;/TD&gt;
&lt;TD class="r data"&gt;4&lt;/TD&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Levels is the total number of different levels for the variable, Missing levels is number of different missing levels. We read x with . and .P so this reports 2 missing levels. We get 4 missing levels because y uses . .P .M and .D&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These special missing values are treated as missing for calculations, reports or participation in models unless you use options to force the missing values into the analysis or report. They main difference is that appearance you see AND that you could assign a format so that Proc Print/Report/tabulate displays more descriptive text so there is meaning in the report. You can also test if that specific missing is present for a variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I typically use .D , Don't Know, .R, Refused to Answer, .N , Not Sure with survey data.&lt;/P&gt;
&lt;P&gt;Other data you might suppress values because the sample size is unreliable/ too small or similar. The special missing allows that and then your report might show text like "Insufficient Sample". Many uses.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2023 21:05:58 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-04-28T21:05:58Z</dc:date>
    <item>
      <title>How to make "D" "P" "M" as missing value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872916#M344886</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing well. I was wondering how I could make "D" "P" "M" as "." Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 561pt;" border="0" width="748" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; width: 51pt;"&gt;Obs&lt;/TD&gt;
&lt;TD width="68" class="xl63" style="border-left: none; width: 51pt;"&gt;idauniq&lt;/TD&gt;
&lt;TD width="68" class="xl63" style="border-left: none; width: 51pt;"&gt;cesd1&lt;/TD&gt;
&lt;TD width="68" class="xl63" style="border-left: none; width: 51pt;"&gt;cesd2&lt;/TD&gt;
&lt;TD width="68" class="xl63" style="border-left: none; width: 51pt;"&gt;cesd3&lt;/TD&gt;
&lt;TD width="68" class="xl63" style="border-left: none; width: 51pt;"&gt;cesd4&lt;/TD&gt;
&lt;TD width="68" class="xl63" style="border-left: none; width: 51pt;"&gt;cesd5&lt;/TD&gt;
&lt;TD width="68" class="xl63" style="border-left: none; width: 51pt;"&gt;cesd6&lt;/TD&gt;
&lt;TD width="68" class="xl63" style="border-left: none; width: 51pt;"&gt;cesd7&lt;/TD&gt;
&lt;TD width="68" class="xl63" style="border-left: none; width: 51pt;"&gt;cesd8&lt;/TD&gt;
&lt;TD width="68" class="xl63" style="border-left: none; width: 51pt;"&gt;cesd9&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;100044&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;D&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;2&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;100056&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;3&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;5&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;3&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;100058&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;P&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;P&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;P&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;4&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;100075&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;5&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;100080&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;6&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;100104&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;5&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;P&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;7&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;103713&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;4&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;4&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;4&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;8&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;103730&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;3&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;P&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;9&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;103735&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;10&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;103739&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;4&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;M&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;11&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;103743&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;2&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;P&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;12&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;103762&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;6&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;3&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;P&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;13&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;103765&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;14&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;103766&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;4&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;2&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;15&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;103788&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;16&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;103798&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;17&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;103814&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;5&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;2&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;3&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;18&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;103816&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;19&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;103820&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD width="68" height="19" class="xl63" style="height: 14.25pt; border-top: none; width: 51pt;"&gt;20&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;103832&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;1&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;P&lt;/TD&gt;
&lt;TD width="68" align="right" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;0&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="68" class="xl64" style="border-top: none; border-left: none; width: 51pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Fri, 28 Apr 2023 20:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872916#M344886</guid>
      <dc:creator>nwang5</dc:creator>
      <dc:date>2023-04-28T20:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to make "D" "P" "M" as missing value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872917#M344887</link>
      <description>&lt;P&gt;This implies that you have character variables not numeric. If you convert to numeric, do you need to differentiate between D/P/M and the blanks? In that case, it may be best to use special missing characters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's numeric, do those D/P/M have a period in front of them?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 20:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872917#M344887</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-04-28T20:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to make "D" "P" "M" as missing value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872919#M344889</link>
      <description>&lt;P&gt;Normally, we work with SAS data sets, and whatever this is that you are showing us is not a SAS data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm guessing that ... no never mind ... I shouldn't guess. Please tell us if these variables are numeric or character in your SAS data set, according to PROC CONTENTS or similar.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 20:41:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872919#M344889</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-04-28T20:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to make "D" "P" "M" as missing value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872922#M344892</link>
      <description>It's numeric</description>
      <pubDate>Fri, 28 Apr 2023 20:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872922#M344892</guid>
      <dc:creator>nwang5</dc:creator>
      <dc:date>2023-04-28T20:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to make "D" "P" "M" as missing value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872923#M344893</link>
      <description>It's numeric. Yes, I want to make D/P/M as blank or "."</description>
      <pubDate>Fri, 28 Apr 2023 20:45:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872923#M344893</guid>
      <dc:creator>nwang5</dc:creator>
      <dc:date>2023-04-28T20:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to make "D" "P" "M" as missing value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872924#M344894</link>
      <description>&lt;P&gt;If they're numeric, then they're already missing.&amp;nbsp; They're just &lt;EM&gt;special&lt;/EM&gt; missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to change them all to non-special missing, you could do it like (untested);&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 nums {*} _numeric_ ;
  do i=1 to dim(nums);
    if missing(nums{i}) then nums{i}=.;
  end;
  drop i;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But note that you'll be losing information if you do this, as those missing value letters probably have different meanings.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 20:51:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872924#M344894</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-04-28T20:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to make "D" "P" "M" as missing value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872926#M344896</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/439162"&gt;@nwang5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;It's numeric. Yes, I want to make D/P/M as blank or "."&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then this question is important to have answered:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Do you need to differentiate between D/P/M and the blanks?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 20:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872926#M344896</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-04-28T20:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to make "D" "P" "M" as missing value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872927#M344897</link>
      <description>nope~</description>
      <pubDate>Fri, 28 Apr 2023 21:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872927#M344897</guid>
      <dc:creator>nwang5</dc:creator>
      <dc:date>2023-04-28T21:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to make "D" "P" "M" as missing value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872928#M344898</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/439162"&gt;@nwang5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;It's numeric&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If your data set has those variables as NUMERIC and display values like D P or M then it is very likely that your value is already missing but has had the special missing assigned. While we typically only see the . for missing value SAS has an additional 27 special missing values that are assigned as a dot followed by a letter or the underscore character. This feature is often used to designate numeric values that are missing for a specific reason. If this is survey or question results I might think that the .D was assigned when a response was "Don't Know".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can check my thought by running code like:&lt;/P&gt;
&lt;PRE&gt;ods select nlevels;
proc freq data=yourdatasetname nlevels;
   tables cesd3; /* of if you want results for all the variables the cesd: &amp;lt;the colon is a wildcard for names starting with cesd*/
run;&lt;/PRE&gt;
&lt;P&gt;The ODS select is to just show the nlevels table. The output table will show a summary of counts of levels and missing&lt;/P&gt;
&lt;P&gt;An example: The data step shows one way to read data with special missing into numeric values. If you open the Have table you will see P M an D&lt;/P&gt;
&lt;PRE&gt;data have;
  input x y;
datalines;
1 .M
.P 3
1  .P
1 .D
. .
;

ods select nlevels;
proc freq data=have nlevels;
   tables x y;
run;&lt;/PRE&gt;
&lt;P&gt;The output:&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="left"&gt;
&lt;TABLE class="table" summary="Procedure Freq: NLevels" cellspacing="0" cellpadding="3"&gt;&lt;COLGROUP&gt; &lt;COL /&gt;&lt;/COLGROUP&gt; &lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c m header" colspan="4" scope="colgroup"&gt;Number of Variable Levels&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l m header" scope="col"&gt;Variable&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;Levels&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;Missing Levels&lt;/TH&gt;
&lt;TH class="c m header" scope="col"&gt;Nonmissing Levels&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="row"&gt;x&lt;/TH&gt;
&lt;TD class="r data"&gt;3&lt;/TD&gt;
&lt;TD class="r data"&gt;2&lt;/TD&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l m rowheader" scope="row"&gt;y&lt;/TH&gt;
&lt;TD class="r data"&gt;5&lt;/TD&gt;
&lt;TD class="r data"&gt;4&lt;/TD&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Levels is the total number of different levels for the variable, Missing levels is number of different missing levels. We read x with . and .P so this reports 2 missing levels. We get 4 missing levels because y uses . .P .M and .D&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These special missing values are treated as missing for calculations, reports or participation in models unless you use options to force the missing values into the analysis or report. They main difference is that appearance you see AND that you could assign a format so that Proc Print/Report/tabulate displays more descriptive text so there is meaning in the report. You can also test if that specific missing is present for a variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I typically use .D , Don't Know, .R, Refused to Answer, .N , Not Sure with survey data.&lt;/P&gt;
&lt;P&gt;Other data you might suppress values because the sample size is unreliable/ too small or similar. The special missing allows that and then your report might show text like "Insufficient Sample". Many uses.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 21:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872928#M344898</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-04-28T21:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to make "D" "P" "M" as missing value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872930#M344900</link>
      <description>Thank you so much! Really appreciated</description>
      <pubDate>Fri, 28 Apr 2023 21:09:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872930#M344900</guid>
      <dc:creator>nwang5</dc:creator>
      <dc:date>2023-04-28T21:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to make "D" "P" "M" as missing value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872933#M344901</link>
      <description>&lt;P&gt;I see you have an answer but I'll also add, this is just a visual difference. The values would not be included in calculations or affect any filtering using MISSING() function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 21:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872933#M344901</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-04-28T21:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to make "D" "P" "M" as missing value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872935#M344902</link>
      <description>Thank you so much for pointing it! I haven't noticed that. I was wondering how I could make D/N/P as missing or blank that can be included as missing value.</description>
      <pubDate>Fri, 28 Apr 2023 21:43:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872935#M344902</guid>
      <dc:creator>nwang5</dc:creator>
      <dc:date>2023-04-28T21:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to make "D" "P" "M" as missing value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872961#M344909</link>
      <description>&lt;P&gt;Use the MISSING statement to tell SAS which single letter you want the INPUT statement to treat as indications of special missing values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;missing dmp;
data have;
   input idauniq (cesd1-cesd9) (2.);
   count=n(of cesd1-cesd9);
   mean=mean(of cesd1-cesd9);
cards;
100044 0 1 1 D          
100056 3 1 5            
100058 1 0 P   P P      
100075 0 0 1            
100080 1 0     1        
100104 5 0   P          
103713 4 4 4            
103730 3 1   0 P        
103735 1 0 0            
103739 0 4 M            
103743 1 2 P            
103762 6 3   P          
103765 0 0 0            
103766 4 2 1            
103788 0 0 1            
103798 1 1 0            
103814 5 2 3            
103816 0 1 0            
103820 0 1 1            
103832 1 1 P 0    
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1682746092708.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83400iF42DA3E580624325/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_0-1682746092708.png" alt="Tom_0-1682746092708.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2023 05:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872961#M344909</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-04-29T05:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to make "D" "P" "M" as missing value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872987#M344927</link>
      <description>Thank you so much! Have a nice weekend.</description>
      <pubDate>Sat, 29 Apr 2023 15:46:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-quot-D-quot-quot-P-quot-quot-M-quot-as-missing-value/m-p/872987#M344927</guid>
      <dc:creator>nwang5</dc:creator>
      <dc:date>2023-04-29T15:46:00Z</dc:date>
    </item>
  </channel>
</rss>

