<?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: Annotate data set is working for one gmap but not on another gmap in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Annotate-data-set-is-working-for-one-gmap-but-not-on-another/m-p/576762#M13104</link>
    <description>&lt;P&gt;Doesn't work is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the {i} to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat&lt;/A&gt;... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You want to check the log for entries about "outside of area" or 0 observations selected. That would point to a number of possible data issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You if you generated an output map you should post a picture to give us more ideas.&lt;/P&gt;
&lt;P&gt;If not map was generate then&amp;nbsp;it is possible that you did not create a STATECODE variable that matches the type of the values in&amp;nbsp;your where statement.&lt;/P&gt;
&lt;P&gt;Depending on actual colors displayed sometimes the color of your annotate text may be hard to pick out of the map.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that your first GMAP will not run as posted as the where clause doesn't have a second quote around CA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, GMAP ends with a QUIT statement as you can have multiple maps generated by a single Proc call,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2019 23:03:34 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-07-25T23:03:34Z</dc:date>
    <item>
      <title>Annotate data set is working for one gmap but not on another gmap</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Annotate-data-set-is-working-for-one-gmap-but-not-on-another/m-p/576700#M13090</link>
      <description>&lt;PRE&gt;*annotated data set that im using to get state abbreviations on my state maps;&lt;BR /&gt;data maplabel;
        length function $ 8;
        retain flag 0 xsys ysys '2' hsys '3' when 'a' style "'Albnay'";
        set maps.uscenter(drop = long lat);
        
        where fipstate(state) ne 'DC' and fipstate(state) ne 'PR';
        
        function = 'label'; text=fipstate(state); size=2.5; position='5';

        if ocean = 'y' then
             do;
                   position = '6'; output;
                   function = 'move';
                   flag = 1;
             end;

       else if flag = 1 then
              do;
                   function = 'draw'; size = .5;
                   flag = 0;
             end;
             output;
 run;&lt;/PRE&gt;&lt;P&gt;So i have two different maps one thats more basic and one that has more going on.&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;basic map where maplabel works and the state abbreviations work... the map is of just states;&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;proc gmap data=work.zipfilter map=maps.us (where=(statecode in ('CA')));
id statecode;
choro m_obs / annotate = maplabel;
run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc gmap data=work.heatmapaverage_data map=work.counties (where=(statecode in ('CA', 'NV', 'AZ', 'UT', 'OR', 'WA', 'MT', 'ND', 'ID', 'WY', 'SD'))) all;
id id;
choro paymentperbene / annotate = maplabel
                                        level = 10
                                        cdefault = royalblue
                                        legend legend1
                                        coutline = black;
run;&lt;BR /&gt;&lt;BR /&gt;*more advanced data set that features the counties of each state;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table counties as
      select c.*, us.idname
      from mapsgfk.us_counties as c
      left join mapsgfk.us_counties_attr as us
      on c.id = us.id;
      run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The proc sql creates the map dataset, counties, from data sas enterprise guide gives us. Unfortunately i cant share my response data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im new to sas and i dont understand what the disconnect is.&lt;/P&gt;&lt;P&gt;why would maplabel work on the first gmap and not on the second gmap.&lt;/P&gt;&lt;P&gt;No errors are given for either maps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips and tricks would help.&lt;/P&gt;&lt;P&gt;Thanks a bunch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First gmap&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cali_map.PNG" style="width: 570px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31332i62F35C3CCAE5CC69/image-size/large?v=v2&amp;amp;px=999" role="button" title="cali_map.PNG" alt="cali_map.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Second gmap&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="conties.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31333i866D7FFA27DD5B1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="conties.PNG" alt="conties.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I was hoping that the state abbreviations would show on the second map as well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 16:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Annotate-data-set-is-working-for-one-gmap-but-not-on-another/m-p/576700#M13090</guid>
      <dc:creator>tucay</dc:creator>
      <dc:date>2019-07-26T16:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Annotate data set is working for one gmap but not on another gmap</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Annotate-data-set-is-working-for-one-gmap-but-not-on-another/m-p/576762#M13104</link>
      <description>&lt;P&gt;Doesn't work is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the {i} to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat&lt;/A&gt;... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You want to check the log for entries about "outside of area" or 0 observations selected. That would point to a number of possible data issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You if you generated an output map you should post a picture to give us more ideas.&lt;/P&gt;
&lt;P&gt;If not map was generate then&amp;nbsp;it is possible that you did not create a STATECODE variable that matches the type of the values in&amp;nbsp;your where statement.&lt;/P&gt;
&lt;P&gt;Depending on actual colors displayed sometimes the color of your annotate text may be hard to pick out of the map.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that your first GMAP will not run as posted as the where clause doesn't have a second quote around CA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, GMAP ends with a QUIT statement as you can have multiple maps generated by a single Proc call,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 23:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Annotate-data-set-is-working-for-one-gmap-but-not-on-another/m-p/576762#M13104</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-25T23:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Annotate data set is working for one gmap but not on another gmap</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Annotate-data-set-is-working-for-one-gmap-but-not-on-another/m-p/576973#M13130</link>
      <description>Thanks for the response and your input. I added some stuff to the original post.&lt;BR /&gt;Just to add there was no errors given. Something about the second gmap isn't allowing for the abbreviations to show.</description>
      <pubDate>Fri, 26 Jul 2019 16:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Annotate-data-set-is-working-for-one-gmap-but-not-on-another/m-p/576973#M13130</guid>
      <dc:creator>tucay</dc:creator>
      <dc:date>2019-07-26T16:21:26Z</dc:date>
    </item>
  </channel>
</rss>

