<?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 Street Geocoding (SAS v9.4) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Street-Geocoding-SAS-v9-4/m-p/813583#M321127</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  street = "1122 Main St Apt xxx";
  street_cleaned = substr(street, 1, findw(upcase(street),'APT')-1);
  put _all_;
  street = "1122 Main St Lot xxx";
  street_cleaned = substr(street, 1, findw(upcase(street),'LOT')-1);
  put _all_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 16 May 2022 20:01:25 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-05-16T20:01:25Z</dc:date>
    <item>
      <title>SAS Street Geocoding (SAS v9.4)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Street-Geocoding-SAS-v9-4/m-p/813565#M321115</link>
      <description>&lt;P&gt;Hello, in the SAS Street Geocoding guide, it suggests removing extraneous information to improve street geocoding. I would like to remove the apartment or lot number at the end of the address string e.g., “1122 Main St &lt;STRONG&gt;Apt xxx&lt;/STRONG&gt;” or “1122 Main St &lt;STRONG&gt;Lot xxx&lt;/STRONG&gt;”, resulting in "1122 Main St"&amp;nbsp; to clean these data in preparation for street geocoding. I’m having difficulty with SAS code (below) to do this. Please advise? Thx!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Test ; set Data1 (keep=address city zipcode state) ;&lt;BR /&gt;SUB = '&amp;lt;Apt&amp;gt;';&lt;BR /&gt;address = transtrn(STR,SUB,trimn(''));&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 18:51:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Street-Geocoding-SAS-v9-4/m-p/813565#M321115</guid>
      <dc:creator>ndovie</dc:creator>
      <dc:date>2022-05-16T18:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Street Geocoding (SAS v9.4)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Street-Geocoding-SAS-v9-4/m-p/813583#M321127</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  street = "1122 Main St Apt xxx";
  street_cleaned = substr(street, 1, findw(upcase(street),'APT')-1);
  put _all_;
  street = "1122 Main St Lot xxx";
  street_cleaned = substr(street, 1, findw(upcase(street),'LOT')-1);
  put _all_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 May 2022 20:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Street-Geocoding-SAS-v9-4/m-p/813583#M321127</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-05-16T20:01:25Z</dc:date>
    </item>
  </channel>
</rss>

