<?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 Recoding Values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Recoding-Values/m-p/892778#M352641</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dataset has assigned values 1-6 to a variable. I would like to recode the "6" to a "." because this value is throwing off my Proc Means statement for a scale that should be 1-5. Is there syntax to be able to do this? Is there a way to delete all of the "6" in the dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2023 18:04:50 GMT</pubDate>
    <dc:creator>icedcoffee3011</dc:creator>
    <dc:date>2023-09-05T18:04:50Z</dc:date>
    <item>
      <title>Recoding Values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Recoding-Values/m-p/892778#M352641</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dataset has assigned values 1-6 to a variable. I would like to recode the "6" to a "." because this value is throwing off my Proc Means statement for a scale that should be 1-5. Is there syntax to be able to do this? Is there a way to delete all of the "6" in the dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 18:04:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Recoding-Values/m-p/892778#M352641</guid>
      <dc:creator>icedcoffee3011</dc:creator>
      <dc:date>2023-09-05T18:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding Values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Recoding-Values/m-p/892779#M352642</link>
      <description>&lt;P&gt;Data step would be the basic tool.&lt;/P&gt;
&lt;P&gt;Style choice involved whether to create a new variable or change actual value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data new;
   set have;
   if variable=6 then variable= .R;
run;&lt;/PRE&gt;
&lt;P&gt;The .R is a "special missing". It will not be used in any calculation but you can check the value to tell that it is one that was Recoded (the special missing could be any .letter from .A to .Z or ._ ) to differentiate from any others that might be missing for a different reason.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 18:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Recoding-Values/m-p/892779#M352642</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-05T18:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding Values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Recoding-Values/m-p/892782#M352644</link>
      <description>&lt;P&gt;Or this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=yourdatasetname(where=(yourvariablename^=6));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then the rest of your PROC MEANS statements.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 18:32:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Recoding-Values/m-p/892782#M352644</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-09-05T18:32:16Z</dc:date>
    </item>
  </channel>
</rss>

