<?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 Enterprise Guide Compressing SGPlot Text and not using DATTRMAP in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Guide-Compressing-SGPlot-Text-and-not-using/m-p/877561#M346671</link>
    <description>&lt;P&gt;SAS Enterprise Guide will generate an ODS statement by default (likely ODS HTML5) with some settings that may affect your ODS PDF as well. To control for that, you can change the properties of your program to override default output (&lt;A href="https://blogs.sas.com/content/sasdummy/2014/04/16/ods-control-in-eg/" target="_self"&gt;see this tip&lt;/A&gt;). Or try adding ODS CLOSE _ALL_ at the start of your code.&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2023 17:14:20 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2023-05-25T17:14:20Z</dc:date>
    <item>
      <title>SAS Enterprise Guide Compressing SGPlot Text and not using DATTRMAP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Guide-Compressing-SGPlot-Text-and-not-using/m-p/877551#M346666</link>
      <description>&lt;P&gt;I am in the process of transition from SAS Desktop (using the basic window for coding) to SAS Server with enterprise guide. During this transition I am have to ensure that regular reports can still be run with Server/EG. Below is sample code with fake data and values. When I run it on my desktop basic SAS it produces the output (Test_1) I want, but when I run on the SAS Server the PDF output (Test_2) does not properly map the colours, the output graph size is wrong, and the text is squished. Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The report path is just the file location where I store the pdf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE&gt;DATA Profile_Color;
	LENGTH ID FillColor LineColor ContrastColor $ 10;
	INPUT ID &amp;amp;:$2. Value &amp;amp;:$50. FillColor &amp;amp;:$6. LineColor &amp;amp;:$6. ContrastColor &amp;amp;:$6.;
	DATALINES;
	DR  Missing  BIGB  BIGB  BIGB
	DR  Present  MOYG  MOYG  MOYG
	DR  Absent  LIPB  LIPB  LIPB

	;
RUN;

DATA Test;
	LENGTH Specialty Clinic wl_wk D_R $ 11;
	INPUT Specialty &amp;amp;:$11. Clinic &amp;amp;:$4. wl_wk &amp;amp;:$6. D_R &amp;amp;:$6. Count;
	DATALINES;
Hippo  Grey  1 wk  Missing  3
Hippo  Grey  1 wk  Present  4
Hippo  Grey  2 wks  Present  5
Hippo  Grey  3 wks  Absent  1
Hippo  Grey  4 wks  Present  3
Hippo  Grey  6 wks  Present  1
Hippo  Grey  8 wks  Missing  3
Hippo  Grey  8 wks  Present  6
Hippo  Grey  8 wks  Absent  2
Hippo  Grey  11 wks  Absent  5
	;
RUN;

ODS PDF FILE="&amp;amp;report_path.\Test_2 &amp;amp;today..pdf" STYLE=Styles.Orionbackground NOTOC DPI=300;
ODS GRAPHICS ON;
ODS GRAPHICS / WIDTH=6IN HEIGHT=3.5IN;
PROC SGPLOT DATA=Test DATTRMAP=Profile_Color;
	WHERE Specialty = 'Hippo' and Clinic = 'Grey';
	TITLE2 FONT=Albany 'Referral Waitlist';
	VBAR WL_WK/ Group=D_R RESPONSE=Count GROUPORDER=ASCENDING FILLTYPE=Solid ATTRID=DR;
	YAXIS LABEL='# of Visitors' LABELATTRS=(FAMILY=Albany) VALUEATTRS=(FAMILY=Albany);
	XAXIS TYPE=Discrete VALUES=('&amp;gt; 26 wks' '24-26 wks' '20-23 wks' '18-19 wks' '17 wks' '16 wks' '15 wks' '14 wks' 
									'13 wks' '12 wks' '11 wks' '10 wks' '9 wks' '8 wks' '7 wks' '6 wks' '5 wks' 
									'4 wks' '3 wks' '2 wks' '1 wks')
					LABELATTRS=(FAMILY=Albany) VALUEATTRS=(FAMILY=Albany) DISPLAY=(NOLABEL);
	KEYLEGEND / TITLE='' LOCATION=INSIDE POSITION=TOPLEFT TITLEATTRS=(FAMILY=Albany) VALUEATTRS=(FAMILY=Albany);
	XAXISTABLE Count/ LOCATION=INSIDE STAT=SUM VALUEATTRS=(FAMILY=Albany) LABELATTRS=(FAMILY=Albany WEIGHT=Bold);
RUN;

ODS PDF CLOSE;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2023 16:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Guide-Compressing-SGPlot-Text-and-not-using/m-p/877551#M346666</guid>
      <dc:creator>rjronald</dc:creator>
      <dc:date>2023-05-25T16:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Enterprise Guide Compressing SGPlot Text and not using DATTRMAP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Guide-Compressing-SGPlot-Text-and-not-using/m-p/877561#M346671</link>
      <description>&lt;P&gt;SAS Enterprise Guide will generate an ODS statement by default (likely ODS HTML5) with some settings that may affect your ODS PDF as well. To control for that, you can change the properties of your program to override default output (&lt;A href="https://blogs.sas.com/content/sasdummy/2014/04/16/ods-control-in-eg/" target="_self"&gt;see this tip&lt;/A&gt;). Or try adding ODS CLOSE _ALL_ at the start of your code.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 17:14:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Guide-Compressing-SGPlot-Text-and-not-using/m-p/877561#M346671</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2023-05-25T17:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Enterprise Guide Compressing SGPlot Text and not using DATTRMAP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Guide-Compressing-SGPlot-Text-and-not-using/m-p/877570#M346676</link>
      <description>&lt;P&gt;Thanks! That helped with the text and size, however the color mapping is still not coming through. I get the following error message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rjronald_0-1685037256947.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84328iDBF66CC8B139DC61/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rjronald_0-1685037256947.png" alt="rjronald_0-1685037256947.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 17:54:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Guide-Compressing-SGPlot-Text-and-not-using/m-p/877570#M346676</guid>
      <dc:creator>rjronald</dc:creator>
      <dc:date>2023-05-25T17:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Enterprise Guide Compressing SGPlot Text and not using DATTRMAP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Guide-Compressing-SGPlot-Text-and-not-using/m-p/877580#M346681</link>
      <description>&lt;P&gt;Make sure the DATALINES lines are starting in column 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;DATA Profile_Color;
	LENGTH ID FillColor LineColor ContrastColor $ 10;
	INPUT ID &amp;amp;:$2. Value &amp;amp;:$50. FillColor &amp;amp;:$6. LineColor &amp;amp;:$6. ContrastColor &amp;amp;:$6.;
	DATALINES;
DR  Missing  BIGB  BIGB  BIGB
DR  Present  MOYG  MOYG  MOYG
DR  Absent  LIPB  LIPB  LIPB
	;
RUN;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 25 May 2023 19:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Guide-Compressing-SGPlot-Text-and-not-using/m-p/877580#M346681</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2023-05-25T19:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Enterprise Guide Compressing SGPlot Text and not using DATTRMAP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Guide-Compressing-SGPlot-Text-and-not-using/m-p/877602#M346685</link>
      <description>&lt;P&gt;Thanks so much your help!&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 20:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Enterprise-Guide-Compressing-SGPlot-Text-and-not-using/m-p/877602#M346685</guid>
      <dc:creator>rjronald</dc:creator>
      <dc:date>2023-05-25T20:13:22Z</dc:date>
    </item>
  </channel>
</rss>

