<?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: need to change non missing observations into X in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/need-to-change-non-missing-observations-into-X/m-p/326695#M72811</link>
    <description>&lt;P&gt;Do not however, that doesn't "change" the results, only displays them differently. &amp;nbsp;If you really want to "change" the data, then convert the column to character and then the replace should work fine&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2017 12:39:30 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-01-23T12:39:30Z</dc:date>
    <item>
      <title>need to change non missing observations into X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-to-change-non-missing-observations-into-X/m-p/326668#M72797</link>
      <description>&lt;P&gt;I need to change non missing observations into "X" and keep missing as '.'&lt;/P&gt;
&lt;P&gt;I used the below code&lt;/P&gt;
&lt;P&gt;data fin(drop=i);&lt;BR /&gt; set qs2;&lt;BR /&gt; array nvar(i) &amp;nbsp;_numeric_;&lt;BR /&gt; do i= 1 to dim(nvar); &lt;BR /&gt; if nvar(i) ne . then nvar(i)= 'X';&lt;BR /&gt; end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;But as the values are numeric and i am converting them as character i get an error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can there be any other way in arrays to do&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 10:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-to-change-non-missing-observations-into-X/m-p/326668#M72797</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2017-01-23T10:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: need to change non missing observations into X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-to-change-non-missing-observations-into-X/m-p/326672#M72801</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use a format :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value X .='.'
       other='X';
run;

proc print data=sashelp.class;
var _NUMERIC_;
format _NUMERIC_ X.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jan 2017 10:48:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-to-change-non-missing-observations-into-X/m-p/326672#M72801</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2017-01-23T10:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: need to change non missing observations into X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-to-change-non-missing-observations-into-X/m-p/326695#M72811</link>
      <description>&lt;P&gt;Do not however, that doesn't "change" the results, only displays them differently. &amp;nbsp;If you really want to "change" the data, then convert the column to character and then the replace should work fine&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 12:39:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-to-change-non-missing-observations-into-X/m-p/326695#M72811</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-01-23T12:39:30Z</dc:date>
    </item>
  </channel>
</rss>

