<?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 Proc Geocode issues with non-existent group variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Geocode-issues-with-non-existent-group-variable/m-p/304503#M64813</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS 9.4 TS Level 1M1&lt;/P&gt;&lt;P&gt;X64_7PRO platform&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having some issues with Proc Geocode. I have followed all of the directions for downloading the correct data from SAS Maps Online - since I need data for Alberta Canada, I have downloaded the latest shape files from&amp;nbsp;&lt;SPAN&gt;GeoBase &lt;/SPAN&gt;&lt;A href="http://geobase.ca/geobase/en/data/nrn/index.html" target="_blank"&gt;&lt;SPAN&gt;National Road Network&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; (NRN) files and created the required sas files using the Geobase2Geobase.sas macro. &amp;nbsp;Everything installed fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After preparing the data input file in the correct format and importing into SAS, I ran the procedure and it crashed on me while making reference to a missing group variable. I am uncertain why this error occurred since I have no variable named group in the data input file and there are none in any data sets that I can see. Any advice would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc geocode&lt;BR /&gt;method = street /* Street method */&lt;BR /&gt;data = geocode.fas_mif_location_ab /* Address data to geocode */&lt;BR /&gt;out = geocode.geo_fas_mif_location_ab /* Geocoded output data set */&lt;BR /&gt;lookupstreet = geocdeab.alberta_m /* Street lookup data set */&lt;BR /&gt;direct = geocdeab.gcdirect_can /* English/French directions */&lt;BR /&gt;type = geocdeab.gctype_can /* Canadian street types */&lt;BR /&gt;addressvar = address /* street address */&lt;BR /&gt;addresscountryvar = country /* Input data set country name var */&lt;BR /&gt;addressstatevar = province /* Input data set state name var */&lt;BR /&gt;addresscityvar = city /* Input data set city name var */&lt;BR /&gt;nozip; /* Disable ZIP method */&lt;BR /&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the error message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NOTE: Lookup data set MAPSGFK.WORLD_CITIES used for worldwide geocoding.&lt;BR /&gt;ERROR: Variable GROUP not found in GEOCDEAB.GCTYPE_CAN data set.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set GEOCODE.GEO_FAS_MIF_LOCATION_AB may be incomplete. When this step was&lt;BR /&gt;stopped there were 0 observations and 0 variables.&lt;BR /&gt;WARNING: Data set GEOCODE.GEO_FAS_MIF_LOCATION_AB was not replaced because this step was stopped.&lt;BR /&gt;NOTE: PROCEDURE GEOCODE used (Total process time):&lt;BR /&gt;real time 0.43 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2016 00:03:59 GMT</pubDate>
    <dc:creator>sp3</dc:creator>
    <dc:date>2016-10-14T00:03:59Z</dc:date>
    <item>
      <title>Proc Geocode issues with non-existent group variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Geocode-issues-with-non-existent-group-variable/m-p/304503#M64813</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS 9.4 TS Level 1M1&lt;/P&gt;&lt;P&gt;X64_7PRO platform&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having some issues with Proc Geocode. I have followed all of the directions for downloading the correct data from SAS Maps Online - since I need data for Alberta Canada, I have downloaded the latest shape files from&amp;nbsp;&lt;SPAN&gt;GeoBase &lt;/SPAN&gt;&lt;A href="http://geobase.ca/geobase/en/data/nrn/index.html" target="_blank"&gt;&lt;SPAN&gt;National Road Network&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; (NRN) files and created the required sas files using the Geobase2Geobase.sas macro. &amp;nbsp;Everything installed fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After preparing the data input file in the correct format and importing into SAS, I ran the procedure and it crashed on me while making reference to a missing group variable. I am uncertain why this error occurred since I have no variable named group in the data input file and there are none in any data sets that I can see. Any advice would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc geocode&lt;BR /&gt;method = street /* Street method */&lt;BR /&gt;data = geocode.fas_mif_location_ab /* Address data to geocode */&lt;BR /&gt;out = geocode.geo_fas_mif_location_ab /* Geocoded output data set */&lt;BR /&gt;lookupstreet = geocdeab.alberta_m /* Street lookup data set */&lt;BR /&gt;direct = geocdeab.gcdirect_can /* English/French directions */&lt;BR /&gt;type = geocdeab.gctype_can /* Canadian street types */&lt;BR /&gt;addressvar = address /* street address */&lt;BR /&gt;addresscountryvar = country /* Input data set country name var */&lt;BR /&gt;addressstatevar = province /* Input data set state name var */&lt;BR /&gt;addresscityvar = city /* Input data set city name var */&lt;BR /&gt;nozip; /* Disable ZIP method */&lt;BR /&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the error message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NOTE: Lookup data set MAPSGFK.WORLD_CITIES used for worldwide geocoding.&lt;BR /&gt;ERROR: Variable GROUP not found in GEOCDEAB.GCTYPE_CAN data set.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set GEOCODE.GEO_FAS_MIF_LOCATION_AB may be incomplete. When this step was&lt;BR /&gt;stopped there were 0 observations and 0 variables.&lt;BR /&gt;WARNING: Data set GEOCODE.GEO_FAS_MIF_LOCATION_AB was not replaced because this step was stopped.&lt;BR /&gt;NOTE: PROCEDURE GEOCODE used (Total process time):&lt;BR /&gt;real time 0.43 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 00:03:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Geocode-issues-with-non-existent-group-variable/m-p/304503#M64813</guid>
      <dc:creator>sp3</dc:creator>
      <dc:date>2016-10-14T00:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode issues with non-existent group variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Geocode-issues-with-non-existent-group-variable/m-p/304535#M64827</link>
      <description>&lt;P&gt;You wrote "...&lt;SPAN&gt;&lt;STRONG&gt;created&lt;/STRONG&gt; the required sas files using the Geobase2Geobase.sas &lt;STRONG&gt;macro&lt;/STRONG&gt;.";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I guess, the problem is somwhere in the macro, while creating the file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you have another country&amp;nbsp;that works fine, compare variable names of GCTYPE* datasets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you saved the log of dataset creation, check it for WARNING / ERROR messages, if any.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As I'm using the SAS University Edition, I have no acces to SAS GRAPH.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 05:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Geocode-issues-with-non-existent-group-variable/m-p/304535#M64827</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-10-14T05:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode issues with non-existent group variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Geocode-issues-with-non-existent-group-variable/m-p/305192#M65069</link>
      <description>&lt;P&gt;We have a new version of CodeBase2Geocode.sas that should take care of this problem.&lt;/P&gt;
&lt;P&gt;Please let us know if this fixes the import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 19:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Geocode-issues-with-non-existent-group-variable/m-p/305192#M65069</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2016-10-17T19:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode issues with non-existent group variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Geocode-issues-with-non-existent-group-variable/m-p/305692#M65230</link>
      <description>&lt;P&gt;Thanks Darrell. I managed to get it working by importing another file that including the missing "Group" variable but I will definitely redo the data import using the new Geocode macro that you have provided. Once I have done so&amp;nbsp;I will report on any progress.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;sp3&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 15:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Geocode-issues-with-non-existent-group-variable/m-p/305692#M65230</guid>
      <dc:creator>sp3</dc:creator>
      <dc:date>2016-10-19T15:23:48Z</dc:date>
    </item>
  </channel>
</rss>

