<?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: Programatically control EG ODS Options in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595127#M34871</link>
    <description>&lt;P&gt;EG 8.1 uses HTML5 by default, so you might start by unchecking the "flavor" of HTML to use and set back to plain HTML.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if what "broke" is a setting related to graphics style/type, you could add explicit ODS statements for PDF that set it to what you want.&amp;nbsp; If using EG to generate the PDF output for you, try statements like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp;ods pdf(id=egpdf) gtitle gfootnote...;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Learn more &lt;A href="https://blogs.sas.com/content/sasdummy/2014/04/16/ods-control-in-eg/" target="_self"&gt;in this blog post about ODS control in EG&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2019 16:24:21 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2019-10-09T16:24:21Z</dc:date>
    <item>
      <title>Programatically control EG ODS Options</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595123#M34870</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have recently switched to Enterprise Guide 8.1. Along with that switch one of our pdf reports broke.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We found that we could fix the report by going Tools --&amp;gt; Options --&amp;gt; Results --&amp;gt; General and unticking the Result Format of HTML.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to achieve the same effect by setting some options?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 16:09:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595123#M34870</guid>
      <dc:creator>DanielLangley</dc:creator>
      <dc:date>2019-10-09T16:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically control EG ODS Options</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595127#M34871</link>
      <description>&lt;P&gt;EG 8.1 uses HTML5 by default, so you might start by unchecking the "flavor" of HTML to use and set back to plain HTML.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if what "broke" is a setting related to graphics style/type, you could add explicit ODS statements for PDF that set it to what you want.&amp;nbsp; If using EG to generate the PDF output for you, try statements like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp;ods pdf(id=egpdf) gtitle gfootnote...;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Learn more &lt;A href="https://blogs.sas.com/content/sasdummy/2014/04/16/ods-control-in-eg/" target="_self"&gt;in this blog post about ODS control in EG&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 16:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595127#M34871</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-10-09T16:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically control EG ODS Options</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595478#M34879</link>
      <description>&lt;P&gt;Hi Chris.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;I am trying to write code that can run in multiple instances of EG or be sent to someone else and it will "just work".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping that there was a way of writing code that could set the options that I want. I have tried using ods _all_ close and it is not stopping the html EG option from affecting my pdf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 16:23:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595478#M34879</guid>
      <dc:creator>DanielLangley</dc:creator>
      <dc:date>2019-10-10T16:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically control EG ODS Options</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595483#M34880</link>
      <description>&lt;P&gt;Can you share specifics about what's "broken" in your PDF report? Paging, style, graphics, layout?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 16:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595483#M34880</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-10-10T16:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically control EG ODS Options</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595495#M34881</link>
      <description>&lt;P&gt;Sure. There is a proc sgplot used to build some custom graphs. It is using text as one of the attributes and if EG html is check the text becomes really squished up and disassociated from the text backlighting which remains where it is supposed to bed and is not squished up. If I uncheck the html box and rerun the pdf this doesn't happen. I am not sure how or why html is affecting the pdf.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 17:02:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595495#M34881</guid>
      <dc:creator>DanielLangley</dc:creator>
      <dc:date>2019-10-10T17:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically control EG ODS Options</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595522#M34882</link>
      <description>&lt;P&gt;Any custom style or special settings?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you add this to the top of your program:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;ods pdf(egpdf) style=(your desired style) gtitle;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does that help?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 18:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595522#M34882</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-10-10T18:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically control EG ODS Options</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595674#M34889</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm afraid that didn't work.&lt;/P&gt;&lt;P&gt;I have stripped my code back to create the worlds ugliest pdf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try running it with the Tools--&amp;gt;Options--&amp;gt;Results--&amp;gt;General--&amp;gt;Html checked and again with it unchecked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.class;
set sashelp.class(obs = 5);
N = _n_;
low = 0;
mid = 1;
high = 2;
run;

ods _all_ close;
ods pdf(mypdf) file=&amp;amp;fileLoc. style=PEARL gtitle;

proc sgplot data = work.class;
	text	y = n
		x = mid
		text = name
		/
		textattrs = (size = 18pt color=red)
		backlight = 1
	;
run;
quit;

ods pdf(mypdf) close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Oct 2019 10:05:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595674#M34889</guid>
      <dc:creator>DanielLangley</dc:creator>
      <dc:date>2019-10-11T10:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically control EG ODS Options</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595731#M34893</link>
      <description>&lt;P&gt;Try adding this to your code.&amp;nbsp; Default with HTML is SVG, and I think that's affecting the way SGPLOT builds the graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp;options dev=png;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Oct 2019 13:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595731#M34893</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-10-11T13:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically control EG ODS Options</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595814#M34897</link>
      <description>&lt;P&gt;Thankyou&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 16:41:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Programatically-control-EG-ODS-Options/m-p/595814#M34897</guid>
      <dc:creator>DanielLangley</dc:creator>
      <dc:date>2019-10-11T16:41:55Z</dc:date>
    </item>
  </channel>
</rss>

