<?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: GMAP - Fragmenting Map, problems with GREMOVE in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/GMAP-Fragmenting-Map-problems-with-GREMOVE/m-p/198138#M7387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it seems that when I use MERGE I have no problems with the fragmentation so something most have been of with my JOIN. Thanks for the response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2015 05:48:14 GMT</pubDate>
    <dc:creator>Criptic</dc:creator>
    <dc:date>2015-07-09T05:48:14Z</dc:date>
    <item>
      <title>GMAP - Fragmenting Map, problems with GREMOVE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GMAP-Fragmenting-Map-problems-with-GREMOVE/m-p/198136#M7385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I want to remove an internal border in my map data set, which I imported from a shape file. It is based on the German zip code and I want to now visualize some insurance zones on top of it. These zones are intermixed with each other, but they never overlap. After I joined my zones to the imported data set everything seems to be fine, everything as a zone and the number of entries doesn't change. Then I use PROC SORT to sort the new joined data set by the insurance zones - again everything seems to be fine. Then in my last step I use PROC GREMOVE and this where things go downhill, the number of entries reduces by about 200.000 and I have no idea why. I am posting the code below with it (hoping my formatting isn't to awful this is my first time posting). Thanks in advance for any help you can give me. &amp;amp;DETAIL is a macro variable that includes the specific insurance zone which the user can specify.&lt;/P&gt;&lt;P&gt;/*This dummy is need because the zones are always in a zip code range*/&lt;/P&gt;&lt;P&gt;DATA PLZ_DUMMY(KEEP=plz);&lt;/P&gt;&lt;P&gt;&amp;nbsp; x=0; &lt;/P&gt;&lt;P&gt;&amp;nbsp; DO WHILE(x LE 99999);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; plz=PUT(x,z5.);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTPUT; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=x+1; &lt;/P&gt;&lt;P&gt;&amp;nbsp; END; &lt;/P&gt;&lt;P&gt;&amp;nbsp; RUN; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Here I join my dummy table with the table that includes the insurance zones*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; PROC SQL;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CREATE TABLE GDV_ZONEN AS&lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT&amp;nbsp; a.plz, b.&amp;amp;DETAIL&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM PLZ_DUMMY a&lt;/P&gt;&lt;P&gt;&amp;nbsp; LEFT JOIN kwh_dim.vgv_gdv_tarifzonen b&lt;/P&gt;&lt;P&gt;&amp;nbsp; ON a.plz BETWEEN b.plz_von and b.plz_bis;&lt;/P&gt;&lt;P&gt;&amp;nbsp; QUIT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Here I Left Join my imported data set which is based on the zip code with the data set which includes the zones*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; PROC SQL;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CREATE TABLE GDV_ZONEN_KOR AS&lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT kb.*, gz.&amp;amp;DETAIL&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM KARTEN_BASIS kb&lt;/P&gt;&lt;P&gt;&amp;nbsp; LEFT JOIN GDV_ZONEN gz&lt;/P&gt;&lt;P&gt;&amp;nbsp; ON kb.plz = gz.plz;&lt;/P&gt;&lt;P&gt;&amp;nbsp; QUIT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Sorting*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; PROC SORT DATA=GDV_ZONEN_KOR OUT=GDV_ZONEN_SORT;&lt;/P&gt;&lt;P&gt;&amp;nbsp; BY &amp;amp;DETAIL;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Removing the old ID and setting the zone as the new ID - I think*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; PROC GREMOVE DATA=GDV_ZONEN_SORT OUT=MAP_DATA;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID ID;&lt;/P&gt;&lt;P&gt;&amp;nbsp; BY &amp;amp;DETAIL;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 12:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GMAP-Fragmenting-Map-problems-with-GREMOVE/m-p/198136#M7385</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2015-07-08T12:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: GMAP - Fragmenting Map, problems with GREMOVE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GMAP-Fragmenting-Map-problems-with-GREMOVE/m-p/198137#M7386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't tell what you are doing without the data, but the following example seems to be the same thing that you are trying to do:&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/graphref/67288/HTML/default/viewer.htm#p0zr4d6x9xv72tn13hrqglqwr8pp.htm"&gt;http://support.sas.com/documentation/cdl/en/graphref/67288/HTML/default/viewer.htm#p0zr4d6x9xv72tn13hrqglqwr8pp.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 16:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GMAP-Fragmenting-Map-problems-with-GREMOVE/m-p/198137#M7386</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2015-07-08T16:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: GMAP - Fragmenting Map, problems with GREMOVE</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GMAP-Fragmenting-Map-problems-with-GREMOVE/m-p/198138#M7387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it seems that when I use MERGE I have no problems with the fragmentation so something most have been of with my JOIN. Thanks for the response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 05:48:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GMAP-Fragmenting-Map-problems-with-GREMOVE/m-p/198138#M7387</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2015-07-09T05:48:14Z</dc:date>
    </item>
  </channel>
</rss>

