<?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: SAS Function-- Convert state name to two character USPS state code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Function-Convert-state-name-to-two-character-USPS-state-code/m-p/100120#M258061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for the clarification. It works.&lt;/P&gt;&lt;P&gt;very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saravanan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2012 15:42:46 GMT</pubDate>
    <dc:creator>Saravanan</dc:creator>
    <dc:date>2012-08-22T15:42:46Z</dc:date>
    <item>
      <title>SAS Function-- Convert state name to two character USPS state code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Function-Convert-state-name-to-two-character-USPS-state-code/m-p/100118#M258059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any SAS function which converts state name to two character US postal code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, North Carolina should give 37&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i do not have abbreviated state name to use stfips function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 13:16:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Function-Convert-state-name-to-two-character-USPS-state-code/m-p/100118#M258059</guid>
      <dc:creator>Saravanan</dc:creator>
      <dc:date>2012-08-21T13:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Function-- Convert state name to two character USPS state code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Function-Convert-state-name-to-two-character-USPS-state-code/m-p/100119#M258060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;37 is FIPS not POSTAL Code. Postal would be NC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dataset SASHELP.Zipcode has full name 2 letter postal code and 2 digit FIPS codes, so you could build a look up data set and either create an informat or use merge or SQL to join to your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table statecodes as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select distinct statename, statecode, state&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from sashelp.zipcode;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 14:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Function-Convert-state-name-to-two-character-USPS-state-code/m-p/100119#M258060</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-08-22T14:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Function-- Convert state name to two character USPS state code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Function-Convert-state-name-to-two-character-USPS-state-code/m-p/100120#M258061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for the clarification. It works.&lt;/P&gt;&lt;P&gt;very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saravanan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 15:42:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Function-Convert-state-name-to-two-character-USPS-state-code/m-p/100120#M258061</guid>
      <dc:creator>Saravanan</dc:creator>
      <dc:date>2012-08-22T15:42:46Z</dc:date>
    </item>
  </channel>
</rss>

