<?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 what am I doing wrong? formatting missing values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694051#M211648</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am trying to create formats using proc format but for whatever reason the missing values are not getting formatted.&lt;/P&gt;&lt;P&gt;Same problem for both numeric and character vars.&lt;/P&gt;&lt;P&gt;Any idea why?&lt;/P&gt;</description>
    <pubDate>Sat, 24 Oct 2020 23:13:02 GMT</pubDate>
    <dc:creator>K_S</dc:creator>
    <dc:date>2020-10-24T23:13:02Z</dc:date>
    <item>
      <title>what am I doing wrong? formatting missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694051#M211648</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am trying to create formats using proc format but for whatever reason the missing values are not getting formatted.&lt;/P&gt;&lt;P&gt;Same problem for both numeric and character vars.&lt;/P&gt;&lt;P&gt;Any idea why?&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2020 23:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694051#M211648</guid>
      <dc:creator>K_S</dc:creator>
      <dc:date>2020-10-24T23:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: what am I doing wrong? formatting missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694052#M211649</link>
      <description>Show us the code. Show us a portion of the data.</description>
      <pubDate>Sat, 24 Oct 2020 23:20:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694052#M211649</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-10-24T23:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: what am I doing wrong? formatting missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694053#M211650</link>
      <description>&lt;P&gt;PROC FORMAT;&lt;BR /&gt;VALUE AREA (NOTSORTED)&lt;BR /&gt;1="URBAN: built-up area with a high population density"&lt;BR /&gt;2="RESIDENTIAL: living dwellings"&lt;BR /&gt;.="MISSING/UNKNOWN";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2020 23:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694053#M211650</guid>
      <dc:creator>K_S</dc:creator>
      <dc:date>2020-10-24T23:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: what am I doing wrong? formatting missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694054#M211651</link>
      <description>Hi. I requested you show us two things. You only showed us one.&lt;BR /&gt;&lt;BR /&gt;Also show us the rest of the code where you assign the format to a variable.</description>
      <pubDate>Sat, 24 Oct 2020 23:38:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694054#M211651</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-10-24T23:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: what am I doing wrong? formatting missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694055#M211652</link>
      <description>&lt;P&gt;data X;&lt;BR /&gt;set Y;&lt;BR /&gt;FORMAT&lt;BR /&gt;AREA AREA.;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and please note, the other values get formatted, but not the missing ones.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2020 23:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694055#M211652</guid>
      <dc:creator>K_S</dc:creator>
      <dc:date>2020-10-24T23:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: what am I doing wrong? formatting missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694056#M211653</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FORMAT;
VALUE AREA (NOTSORTED)
1="URBAN: built-up area with a high population density"
2="RESIDENTIAL: living dwellings"
.="MISSING/UNKNOWN"
other="some other value";
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Could be that your missing values are not . but rather some other missing such as &lt;STRONG&gt;.Z&lt;/STRONG&gt; or &lt;STRONG&gt;._&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2020 00:11:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694056#M211653</guid>
      <dc:creator>unison</dc:creator>
      <dc:date>2020-10-25T00:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: what am I doing wrong? formatting missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694057#M211654</link>
      <description>&lt;P&gt;Sadly, that is not the case. Any other possible explanation.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2020 00:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694057#M211654</guid>
      <dc:creator>K_S</dc:creator>
      <dc:date>2020-10-25T00:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: what am I doing wrong? formatting missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694059#M211656</link>
      <description>Can you post your proc format code, your data, and your results?  Otherwise I think I'd kind of be taking a shot in the dark.&lt;BR /&gt;&lt;BR /&gt;Jim&lt;BR /&gt;</description>
      <pubDate>Sun, 25 Oct 2020 00:59:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694059#M211656</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-10-25T00:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: what am I doing wrong? formatting missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694062#M211658</link>
      <description>&lt;P&gt;I have posted the syntax in response to someone else's comment. I will not be posting the data.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2020 01:44:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694062#M211658</guid>
      <dc:creator>K_S</dc:creator>
      <dc:date>2020-10-25T01:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: what am I doing wrong? formatting missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694063#M211659</link>
      <description>I see what you mean now! How would i be able to find out what the missing value is? I am looking at my table and see dots.</description>
      <pubDate>Sun, 25 Oct 2020 01:46:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694063#M211659</guid>
      <dc:creator>K_S</dc:creator>
      <dc:date>2020-10-25T01:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: what am I doing wrong? formatting missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694081#M211668</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	input area;
	datalines;
1
2
.
.
;
run;

proc format;
	value area 
		1='URBAN: built-up area with a high population density' 
		2='RESIDENTIAL: living dwellings'
		.='MISSING/UNKNOWN';
run;

data want;
	set have;
	format area area.;
run;
proc print noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This works just fine. Can't really know for sure what's going on without data/images/etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Oct 2020 04:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-am-I-doing-wrong-formatting-missing-values/m-p/694081#M211668</guid>
      <dc:creator>unison</dc:creator>
      <dc:date>2020-10-25T04:05:51Z</dc:date>
    </item>
  </channel>
</rss>

