<?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 How can I change a postal code variable to a 1 or an &amp;quot;Available&amp;quot; in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-change-a-postal-code-variable-to-a-1-or-an-quot/m-p/935060#M367644</link>
    <description>&lt;P&gt;Hello &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping I can get some help here. I have a variable that has postal codes listed for case ID's. Some are available and some are not. I am trying to re-code my 'Postal Code' variable so that it either has 0 for missing and 1 for available, or I can also change it to "Available" and "Not Available" ...I managed to change the missings to 0 but I can't figure out how to change the many diff postal codes into a single number or word. Any help would be really appreciated!&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 21:36:10 GMT</pubDate>
    <dc:creator>qadri0345</dc:creator>
    <dc:date>2024-07-08T21:36:10Z</dc:date>
    <item>
      <title>How can I change a postal code variable to a 1 or an "Available"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-change-a-postal-code-variable-to-a-1-or-an-quot/m-p/935060#M367644</link>
      <description>&lt;P&gt;Hello &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping I can get some help here. I have a variable that has postal codes listed for case ID's. Some are available and some are not. I am trying to re-code my 'Postal Code' variable so that it either has 0 for missing and 1 for available, or I can also change it to "Available" and "Not Available" ...I managed to change the missings to 0 but I can't figure out how to change the many diff postal codes into a single number or word. Any help would be really appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 21:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-change-a-postal-code-variable-to-a-1-or-an-quot/m-p/935060#M367644</guid>
      <dc:creator>qadri0345</dc:creator>
      <dc:date>2024-07-08T21:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change a postal code variable to a 1 or an "Available"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-I-change-a-postal-code-variable-to-a-1-or-an-quot/m-p/935065#M367645</link>
      <description>&lt;P&gt;If you have recoded 'Missing' as 0 you should be able to recode the 'Non-missing' values to 1 eg., with simply IF/THEN, ELSE statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
	set have;
	if not missing(PostalCode) then PostalCode=1;
	else PostalCode=0;
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jul 2024 22:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-I-change-a-postal-code-variable-to-a-1-or-an-quot/m-p/935065#M367645</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2024-07-08T22:04:48Z</dc:date>
    </item>
  </channel>
</rss>

