<?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: Separating FIPS code in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Separating-FIPS-code/m-p/825340#M41166</link>
    <description>&lt;P&gt;Is your current FIPS variable numeric or character? Do you want character or numeric State and County? If character do you want the leading 0 that should be present to avoid confusion?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 18:50:45 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-07-25T18:50:45Z</dc:date>
    <item>
      <title>Separating FIPS code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Separating-FIPS-code/m-p/825339#M41165</link>
      <description>&lt;P&gt;Hello, I am wanting to separate the FIPs code into just state and county number. Any advice?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shown below is what I am wanting&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;What I have&lt;/TD&gt;&lt;TD&gt;What I want&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FIPS&lt;/TD&gt;&lt;TD&gt;State&lt;/TD&gt;&lt;TD&gt;County&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5017&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5041&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;41&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20107&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;107&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;46097&lt;/TD&gt;&lt;TD&gt;46&lt;/TD&gt;&lt;TD&gt;97&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 25 Jul 2022 18:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Separating-FIPS-code/m-p/825339#M41165</guid>
      <dc:creator>ccaudillo100</dc:creator>
      <dc:date>2022-07-25T18:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Separating FIPS code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Separating-FIPS-code/m-p/825340#M41166</link>
      <description>&lt;P&gt;Is your current FIPS variable numeric or character? Do you want character or numeric State and County? If character do you want the leading 0 that should be present to avoid confusion?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 18:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Separating-FIPS-code/m-p/825340#M41166</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-07-25T18:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Separating FIPS code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Separating-FIPS-code/m-p/825341#M41167</link>
      <description>&lt;P&gt;Are those numbers?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  state = int(fips/1000);
  county = mod(fips,1000);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or strings?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  state=put(int(input(fips,32.)/100),Z2.);
  county=put(mod(input(fips,32.),100),Z3.);
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Jul 2022 18:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Separating-FIPS-code/m-p/825341#M41167</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-07-25T18:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Separating FIPS code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Separating-FIPS-code/m-p/825342#M41168</link>
      <description>For me it was just numeric but both are helpful for me in the future! Thank you so much!</description>
      <pubDate>Mon, 25 Jul 2022 18:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Separating-FIPS-code/m-p/825342#M41168</guid>
      <dc:creator>ccaudillo100</dc:creator>
      <dc:date>2022-07-25T18:55:40Z</dc:date>
    </item>
  </channel>
</rss>

