<?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 Replacing missing Numeric value with NA and not changing format of others in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Replacing-missing-Numeric-value-with-NA-and-not-changing-format/m-p/389470#M93385</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
PROC FORMAT ;
PICTURE Num    .="NA"
             OTHER= "000.00%";
			 run;

data test;
input  Number ;
format Number num. ;
cards;
10910.63%
63.91%
75.56%
-77.08%
.
.
0.74%
-8.12%
.
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want only missing value to be replaced by NA and others value remains same in percentage .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2017 08:03:09 GMT</pubDate>
    <dc:creator>subrat1</dc:creator>
    <dc:date>2017-08-21T08:03:09Z</dc:date>
    <item>
      <title>Replacing missing Numeric value with NA and not changing format of others</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replacing-missing-Numeric-value-with-NA-and-not-changing-format/m-p/389470#M93385</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
PROC FORMAT ;
PICTURE Num    .="NA"
             OTHER= "000.00%";
			 run;

data test;
input  Number ;
format Number num. ;
cards;
10910.63%
63.91%
75.56%
-77.08%
.
.
0.74%
-8.12%
.
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want only missing value to be replaced by NA and others value remains same in percentage .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 08:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replacing-missing-Numeric-value-with-NA-and-not-changing-format/m-p/389470#M93385</guid>
      <dc:creator>subrat1</dc:creator>
      <dc:date>2017-08-21T08:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing missing Numeric value with NA and not changing format of others</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replacing-missing-Numeric-value-with-NA-and-not-changing-format/m-p/389472#M93386</link>
      <description>&lt;P&gt;You need to change your format slightly and add an informat to read the percentages&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FORMAT ;
	value Num
		.="NA"
		other=[percentn8.2]
		;
run;

data test;
input  Number ;
informat number percent9.;
format Number num. ;
cards;
10910.63%
63.91%
75.56%
-77.08%
.
.
0.74%
-8.12%
.
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Aug 2017 08:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replacing-missing-Numeric-value-with-NA-and-not-changing-format/m-p/389472#M93386</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-08-21T08:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing missing Numeric value with NA and not changing format of others</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replacing-missing-Numeric-value-with-NA-and-not-changing-format/m-p/389473#M93387</link>
      <description>&lt;P&gt;Why do you have % character in data you are reading in as numeric? &amp;nbsp;This code works fine (note, its not a good idea to use reserved words as names of formats - or anything else for that matter):&lt;/P&gt;
&lt;PRE&gt;proc format;
  picture mypcent
    .="NA"
    other= "000.00%";
run;

data test;
  input  number;
  format number mypcent.;
cards;
10910.63
63.91
75.56
-77.08
.
.
0.74
-8.12
.
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Aug 2017 08:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replacing-missing-Numeric-value-with-NA-and-not-changing-format/m-p/389473#M93387</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-08-21T08:31:34Z</dc:date>
    </item>
  </channel>
</rss>

