<?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: ods pdf and gmap: PDF output different than EG in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/ods-pdf-and-gmap-PDF-output-different-than-EG/m-p/982253#M84096</link>
    <description>As ballardw suggested, add option STYLE= in your code:&lt;BR /&gt;&lt;BR /&gt;ods pdf file=...  style=htmlblue;&lt;BR /&gt;proc gmap;&lt;BR /&gt;....&lt;BR /&gt;run;&lt;BR /&gt;ods pdf close;</description>
    <pubDate>Wed, 21 Jan 2026 06:34:13 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2026-01-21T06:34:13Z</dc:date>
    <item>
      <title>ods pdf and gmap: PDF output different than EG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ods-pdf-and-gmap-PDF-output-different-than-EG/m-p/982217#M84092</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I have a program that prepares a map&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc gmap&amp;nbsp; map=mappaRMV&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data=tblTOT&amp;nbsp;&amp;nbsp; all;&amp;nbsp;
&amp;nbsp; id pro_com__t;&amp;nbsp;
&amp;nbsp;choro percent&amp;nbsp; / COUTLINE=green levels=5 ;
&amp;nbsp;format percent 6.2 ;
&amp;nbsp;run;&amp;nbsp;
&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;The coloring of the areas is done in shades of blue (Enterprise guide)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndreaVianello_0-1768919685403.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112705i0E20FC84BA8AE27C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndreaVianello_0-1768919685403.png" alt="AndreaVianello_0-1768919685403.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If I direct the output with ODS PDF and SAS 9.04.01M8 &amp;nbsp;for Windows I get&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndreaVianello_1-1768919784555.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112706iB675DA6CB9706789/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndreaVianello_1-1768919784555.png" alt="AndreaVianello_1-1768919784555.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;While if I direct the output with ODS PDF and same SAS 9.4 for Linux I get&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndreaVianello_2-1768919935717.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112707i6E6F178F5167EFAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndreaVianello_2-1768919935717.png" alt="AndreaVianello_2-1768919935717.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;The sas code is EXACTLY THE SAME&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV class="QcsUad BDJ8fb sMVRZe hCXDsb wneUed"&gt;
&lt;DIV class="usGWQd"&gt;
&lt;DIV class="KkbLmb"&gt;
&lt;DIV class="lRu31" dir="ltr"&gt;&lt;STRONG&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Why?&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Solutions?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2026 14:41:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ods-pdf-and-gmap-PDF-output-different-than-EG/m-p/982217#M84092</guid>
      <dc:creator>AndreaVianello</dc:creator>
      <dc:date>2026-01-20T14:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: ods pdf and gmap: PDF output different than EG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ods-pdf-and-gmap-PDF-output-different-than-EG/m-p/982236#M84093</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/111695"&gt;@AndreaVianello&lt;/a&gt;, SAS uses different styles depending on the destination. For complete control with PROG GMAP, I suggest you create a style yourself to control the colour gradient. Here is an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*   DEFINE STYLE   */
%let color1=vligb; /*very light greenish blue  */
%let color2=vigb;  /*vivid greenish blue*/

proc template; 
    define style styles.&lt;FONT color="#FF0000"&gt;grad1&lt;/FONT&gt;; 
    parent=styles.listing; 
        style twocolorramp / startcolor=&amp;amp;color1 endcolor=&amp;amp;color2; 
    end; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can then use this style in your ODS statements:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="..../choro.pdf" style=&lt;FONT color="#FF0000"&gt;grad1&lt;/FONT&gt;;
proc gmap  map=toronto data=pop all; 
  id cfsauid; 
  choro pop  / COUTLINE=green levels=5 ;
  format pop 6.2 ;
run; 
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is the resulting choropleth map:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="antonbcristina_0-1768925432072.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112708i8807B9561E84DE8A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="antonbcristina_0-1768925432072.png" alt="antonbcristina_0-1768925432072.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2026 16:10:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ods-pdf-and-gmap-PDF-output-different-than-EG/m-p/982236#M84093</guid>
      <dc:creator>antonbcristina</dc:creator>
      <dc:date>2026-01-20T16:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: ods pdf and gmap: PDF output different than EG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ods-pdf-and-gmap-PDF-output-different-than-EG/m-p/982237#M84094</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why don't you use PROC SGMAP (instead of proc gmap)?&lt;/P&gt;
&lt;P&gt;The prefix &lt;STRONG&gt;SG&lt;/STRONG&gt; is for &lt;U&gt;&lt;STRONG&gt;S&lt;/STRONG&gt;&lt;/U&gt;tatistical &lt;STRONG&gt;&lt;U&gt;G&lt;/U&gt;&lt;/STRONG&gt;raphics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See here:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;New SGmap features in SAS 9.4m7&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN class="posted-by"&gt;By&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="reviewer"&gt;&lt;A title="Posts by Robert Allison" href="https://blogs.sas.com/content/author/robertallison/" rel="author" target="_blank"&gt;Robert Allison&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;Graphically Speaking&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="posted-on"&gt;&lt;SPAN class="dtreviewed"&gt;&lt;TIME class="value-title" title="2020-09-25" datetime="2020-09-25T12:40:18-04:00"&gt;September 25, 2020&lt;BR /&gt;&lt;/TIME&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="posted-on"&gt;&lt;SPAN class="dtreviewed"&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2020/09/25/new-sgmap-features-in-sas-9-4m7/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2020/09/25/new-sgmap-features-in-sas-9-4m7/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ciao,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2026 16:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ods-pdf-and-gmap-PDF-output-different-than-EG/m-p/982237#M84094</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2026-01-20T16:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: ods pdf and gmap: PDF output different than EG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ods-pdf-and-gmap-PDF-output-different-than-EG/m-p/982249#M84095</link>
      <description>&lt;P&gt;If you like the appearance that EG gives you then the steps are&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) determine the current ODS STYLE in effect for your session (might be HTMLBlue)&lt;/P&gt;
&lt;P&gt;2) on the code that defines the PDF file add the STYLE= option to use the same style. Or if using the EG interface to set the PDF file options there should be a STYLE option somewhere.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 00:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ods-pdf-and-gmap-PDF-output-different-than-EG/m-p/982249#M84095</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2026-01-21T00:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: ods pdf and gmap: PDF output different than EG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ods-pdf-and-gmap-PDF-output-different-than-EG/m-p/982253#M84096</link>
      <description>As ballardw suggested, add option STYLE= in your code:&lt;BR /&gt;&lt;BR /&gt;ods pdf file=...  style=htmlblue;&lt;BR /&gt;proc gmap;&lt;BR /&gt;....&lt;BR /&gt;run;&lt;BR /&gt;ods pdf close;</description>
      <pubDate>Wed, 21 Jan 2026 06:34:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ods-pdf-and-gmap-PDF-output-different-than-EG/m-p/982253#M84096</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-01-21T06:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: ods pdf and gmap: PDF output different than EG</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ods-pdf-and-gmap-PDF-output-different-than-EG/m-p/982270#M84097</link>
      <description>&lt;P&gt;Thanks everyone for your help. I was wrong to think the problem was in the proc gmap when it was actually in the ods pdf style.&lt;BR /&gt;&lt;BR /&gt;I also learned how to define a style!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I'll definitely also look into the new features of the proc SGmap .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 15:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ods-pdf-and-gmap-PDF-output-different-than-EG/m-p/982270#M84097</guid>
      <dc:creator>AndreaVianello</dc:creator>
      <dc:date>2026-01-21T15:36:21Z</dc:date>
    </item>
  </channel>
</rss>

