<?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 Proc Geocode issue in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Proc-Geocode-issue/m-p/474480#M16371</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/17164"&gt;@scbamba&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have tried to locate our internal IP addresses throughout SAS but my code is not giving me observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FILENAME Signal '/folders/myshortcuts/SAS_Files/Test.csv';&lt;BR /&gt;Data IPData (Keep= ip Geoname_id);&lt;BR /&gt;Length ip $20 Geoname_id 8;&lt;BR /&gt;Infile Signal Firstobs=2;&lt;BR /&gt;Input ip $;&lt;BR /&gt;Array ipnew {4};&lt;BR /&gt;Do i=1 to 4;&lt;BR /&gt;ipnew{i} = scan(ip,i,'.');&lt;BR /&gt;End;&lt;BR /&gt;Geoname_id = ipnew {4} +&lt;BR /&gt;(ipnew {3}*256) +&lt;BR /&gt;(ipnew {2}*256*256) +&lt;BR /&gt;(ipnew {1}*256*256*256);&lt;BR /&gt;Run;&lt;BR /&gt;Quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc Geocode&lt;BR /&gt;Range&lt;BR /&gt;Out=Geo&lt;BR /&gt;Data=IPData&lt;BR /&gt;Addressvar=Geoname_id&lt;BR /&gt;Rangedata=CityBlock&lt;BR /&gt;Beginrangevar=startIpNum&lt;BR /&gt;Endrangevar=endipnum&lt;BR /&gt;Rangekeyvar=locId&lt;BR /&gt;Lookup=CityLocation&lt;BR /&gt;Lookupkeyvar=locId&lt;BR /&gt;Lookupyvar=latitude&lt;BR /&gt;Lookupxvar=longitude&lt;BR /&gt;Attributevar=(city, country);&lt;BR /&gt;Run;&lt;BR /&gt;Quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get a table but no variable.&lt;/P&gt;
&lt;P&gt;How can I fix it please ???&lt;/P&gt;
&lt;P&gt;Thank you for your advice.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There are so many data dependencies in geocoding look ups I can suggest a few things to look for.&lt;/P&gt;
&lt;P&gt;First is the values of the LOOKUP= dataset and the range values used for comparison.&lt;/P&gt;
&lt;P&gt;Then see if your Addressvar variable values (Geoname_id)&amp;nbsp;match format and ranges&amp;nbsp;as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also have a potential issue involving IPv6 values if any are present as your conversion is apparently for IPv4 addresses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The quality of the look up data set is also of importance, perhaps none of your addresses actually match.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jun 2018 15:46:15 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-06-29T15:46:15Z</dc:date>
    <item>
      <title>SAS Proc Geocode issue</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Proc-Geocode-issue/m-p/474468#M16370</link>
      <description>&lt;P&gt;I have tried to locate our internal IP addresses throughout SAS but my code is not giving me observations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME Signal '/folders/myshortcuts/SAS_Files/Test.csv';&lt;BR /&gt;Data IPData (Keep= ip Geoname_id);&lt;BR /&gt;Length ip $20 Geoname_id 8;&lt;BR /&gt;Infile Signal Firstobs=2;&lt;BR /&gt;Input ip $;&lt;BR /&gt;Array ipnew {4};&lt;BR /&gt;Do i=1 to 4;&lt;BR /&gt;ipnew{i} = scan(ip,i,'.');&lt;BR /&gt;End;&lt;BR /&gt;Geoname_id = ipnew {4} +&lt;BR /&gt;(ipnew {3}*256) +&lt;BR /&gt;(ipnew {2}*256*256) +&lt;BR /&gt;(ipnew {1}*256*256*256);&lt;BR /&gt;Run;&lt;BR /&gt;Quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc Geocode&lt;BR /&gt;Range&lt;BR /&gt;Out=Geo&lt;BR /&gt;Data=IPData&lt;BR /&gt;Addressvar=Geoname_id&lt;BR /&gt;Rangedata=CityBlock&lt;BR /&gt;Beginrangevar=startIpNum&lt;BR /&gt;Endrangevar=endipnum&lt;BR /&gt;Rangekeyvar=locId&lt;BR /&gt;Lookup=CityLocation&lt;BR /&gt;Lookupkeyvar=locId&lt;BR /&gt;Lookupyvar=latitude&lt;BR /&gt;Lookupxvar=longitude&lt;BR /&gt;Attributevar=(city, country);&lt;BR /&gt;Run;&lt;BR /&gt;Quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get a table but no variable.&lt;/P&gt;&lt;P&gt;How can I fix it please ???&lt;/P&gt;&lt;P&gt;Thank you for your advice.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 15:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Proc-Geocode-issue/m-p/474468#M16370</guid>
      <dc:creator>scbamba</dc:creator>
      <dc:date>2018-06-29T15:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc Geocode issue</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Proc-Geocode-issue/m-p/474480#M16371</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/17164"&gt;@scbamba&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have tried to locate our internal IP addresses throughout SAS but my code is not giving me observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FILENAME Signal '/folders/myshortcuts/SAS_Files/Test.csv';&lt;BR /&gt;Data IPData (Keep= ip Geoname_id);&lt;BR /&gt;Length ip $20 Geoname_id 8;&lt;BR /&gt;Infile Signal Firstobs=2;&lt;BR /&gt;Input ip $;&lt;BR /&gt;Array ipnew {4};&lt;BR /&gt;Do i=1 to 4;&lt;BR /&gt;ipnew{i} = scan(ip,i,'.');&lt;BR /&gt;End;&lt;BR /&gt;Geoname_id = ipnew {4} +&lt;BR /&gt;(ipnew {3}*256) +&lt;BR /&gt;(ipnew {2}*256*256) +&lt;BR /&gt;(ipnew {1}*256*256*256);&lt;BR /&gt;Run;&lt;BR /&gt;Quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc Geocode&lt;BR /&gt;Range&lt;BR /&gt;Out=Geo&lt;BR /&gt;Data=IPData&lt;BR /&gt;Addressvar=Geoname_id&lt;BR /&gt;Rangedata=CityBlock&lt;BR /&gt;Beginrangevar=startIpNum&lt;BR /&gt;Endrangevar=endipnum&lt;BR /&gt;Rangekeyvar=locId&lt;BR /&gt;Lookup=CityLocation&lt;BR /&gt;Lookupkeyvar=locId&lt;BR /&gt;Lookupyvar=latitude&lt;BR /&gt;Lookupxvar=longitude&lt;BR /&gt;Attributevar=(city, country);&lt;BR /&gt;Run;&lt;BR /&gt;Quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get a table but no variable.&lt;/P&gt;
&lt;P&gt;How can I fix it please ???&lt;/P&gt;
&lt;P&gt;Thank you for your advice.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There are so many data dependencies in geocoding look ups I can suggest a few things to look for.&lt;/P&gt;
&lt;P&gt;First is the values of the LOOKUP= dataset and the range values used for comparison.&lt;/P&gt;
&lt;P&gt;Then see if your Addressvar variable values (Geoname_id)&amp;nbsp;match format and ranges&amp;nbsp;as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also have a potential issue involving IPv6 values if any are present as your conversion is apparently for IPv4 addresses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The quality of the look up data set is also of importance, perhaps none of your addresses actually match.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 15:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Proc-Geocode-issue/m-p/474480#M16371</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-29T15:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc Geocode issue</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Proc-Geocode-issue/m-p/474495#M16374</link>
      <description>&lt;P&gt;If you're working with IP addresses internal to a corporate network, not external on the internet, I don't think you'll find matches in any IP-address geo database.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 16:45:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Proc-Geocode-issue/m-p/474495#M16374</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-06-29T16:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc Geocode issue</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Proc-Geocode-issue/m-p/474535#M16379</link>
      <description>Good afternoon,&lt;BR /&gt;&lt;BR /&gt;I convert the IP already to numerical value with the formula a*x3 + b*x2 + c*x + d.&lt;BR /&gt;But when I code the program it looks fine without error but the output is table with blank lines.&lt;BR /&gt;I am trying to figure it out and I will keep you updated.&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;BR /&gt;&lt;BR /&gt;Sekou&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Jun 2018 18:02:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Proc-Geocode-issue/m-p/474535#M16379</guid>
      <dc:creator>scbamba</dc:creator>
      <dc:date>2018-06-29T18:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Proc Geocode issue</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Proc-Geocode-issue/m-p/474577#M16401</link>
      <description>&lt;P&gt;And what is in your lookup data set?&lt;/P&gt;
&lt;P&gt;If there are no matches in the lookup data set you get no results.&lt;/P&gt;
&lt;P&gt;Where did you get your lookup data set?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 20:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Proc-Geocode-issue/m-p/474577#M16401</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-29T20:31:08Z</dc:date>
    </item>
  </channel>
</rss>

