<?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 SAS Job Execution -  HTML doesn't render sgplot image in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Job-Execution-HTML-cannot-find-png/m-p/954445#M372752</link>
    <description>&lt;P&gt;All:&lt;/P&gt;
&lt;P&gt;I have SAS Code below, and upon&amp;nbsp;SAS Job Execution, it doesn't render sgplot image.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods graphics on / outputfmt=png;&lt;BR /&gt;ODS HTML style=HTMLBlue file=_webout gpath= _ODSOPTIONS = options(BITMAP_MODE='inline');&lt;BR /&gt;&amp;nbsp;proc sgplot data=xxx&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;title; footnote;&lt;/P&gt;
&lt;P&gt;by year;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; xaxis type=linear min=&amp;amp;min_y. max=&amp;amp;max_y. values=(&amp;amp;min_y. to &amp;amp;max_y. by 1);&lt;/P&gt;
&lt;P&gt;series x=time y=estrips / name="mrfss" lineattrs=(thickness=1.85 color=black) markers markerattrs=(size=3.5px color=black) break;&lt;BR /&gt;series x=time y=lower_eff / name="mrfss_ci" lineattrs=(thickness=1.7 pattern=ShortDash color=ligr) break legendlabel="95% Confidence Interval" markers markerattrs=(symbol=x size=4px color=gray);&lt;BR /&gt;series x=time y=upper_eff / lineattrs=(thickness=1.7 pattern=ShortDash color=ligr) break legendlabel=" " markers markerattrs=(symbol=x size=4px color=gray);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yaxis offsetmin=0 ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;ods html close;&lt;BR /&gt;ods graphics off;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am getting&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GPatel_0-1734888390324.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103332iC55BADC8D8414031/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GPatel_0-1734888390324.png" alt="GPatel_0-1734888390324.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Dec 2024 17:26:39 GMT</pubDate>
    <dc:creator>GPatel</dc:creator>
    <dc:date>2024-12-22T17:26:39Z</dc:date>
    <item>
      <title>SAS Job Execution HTML cannot find png</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Job-Execution-HTML-cannot-find-png/m-p/794547#M254777</link>
      <description>&lt;P&gt;I’ve got some sas code that generates html which contains an sgplot with drillable data points.&amp;nbsp; When clicking on a line marker, it runs code in sas job execution.&amp;nbsp; This all works fine in studio.&amp;nbsp; Now I’m trying to run it in sas job execution and I can’t get the output to appear.&amp;nbsp; There are no errors in the log.&amp;nbsp; I think I’m just not specifying the correct job definition parameters.&amp;nbsp; Can you advise?&amp;nbsp; Also, would I leave off the ods html and ods graph statements in my code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the ods statements which I currently have commented out:&lt;/P&gt;&lt;P&gt;/* ods html device=png style=htmlblue newfile=page; */&lt;/P&gt;&lt;P&gt;/* ods graphics / reset imagemap=yes height=4in width=7in outputfmt=png; */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the job definition parameters:&lt;/P&gt;&lt;P&gt;_action=wait&lt;/P&gt;&lt;P&gt;_ODSSTYLE=HTMLBlue&lt;/P&gt;&lt;P&gt;_&lt;EM&gt;OUTPUT&lt;/EM&gt;_TYPE=html&lt;/P&gt;&lt;P&gt;_ODSDEST=html&lt;/P&gt;&lt;P&gt;_ODS_DEVICE=png&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the html page with a missing icon for the sgplot output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%jesbegin is generating these ods statements:&lt;/P&gt;&lt;PRE&gt;ods graphics on / outputfmt=png;&lt;/PRE&gt;&lt;PRE&gt;ods html style=HTMLBlue file=_webout;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Feb 2022 16:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Job-Execution-HTML-cannot-find-png/m-p/794547#M254777</guid>
      <dc:creator>tarthur</dc:creator>
      <dc:date>2022-02-04T16:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Job Execution HTML cannot find png</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Job-Execution-HTML-cannot-find-png/m-p/794727#M254828</link>
      <description>&lt;P&gt;Try option&lt;/P&gt;
&lt;PRE&gt;ods html style=HTMLBlue file=_webout &lt;STRONG&gt;gpath=&lt;/STRONG&gt;;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Feb 2022 05:01:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Job-Execution-HTML-cannot-find-png/m-p/794727#M254828</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2022-02-07T05:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Job Execution HTML cannot find png</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Job-Execution-HTML-cannot-find-png/m-p/936386#M368068</link>
      <description>&lt;P&gt;Try setting:&lt;/P&gt;
&lt;PRE&gt;_ODSOPTIONS = options(BITMAP_MODE='inline')&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;This option will convert your binary picture into a BASE64-encoded string that is included into the HTML. The pictures are not stored as separate binary files.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 15:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Job-Execution-HTML-cannot-find-png/m-p/936386#M368068</guid>
      <dc:creator>FredrikHansson</dc:creator>
      <dc:date>2024-07-19T15:18:01Z</dc:date>
    </item>
    <item>
      <title>SAS Job Execution -  HTML doesn't render sgplot image</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Job-Execution-HTML-cannot-find-png/m-p/954445#M372752</link>
      <description>&lt;P&gt;All:&lt;/P&gt;
&lt;P&gt;I have SAS Code below, and upon&amp;nbsp;SAS Job Execution, it doesn't render sgplot image.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods graphics on / outputfmt=png;&lt;BR /&gt;ODS HTML style=HTMLBlue file=_webout gpath= _ODSOPTIONS = options(BITMAP_MODE='inline');&lt;BR /&gt;&amp;nbsp;proc sgplot data=xxx&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;title; footnote;&lt;/P&gt;
&lt;P&gt;by year;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; xaxis type=linear min=&amp;amp;min_y. max=&amp;amp;max_y. values=(&amp;amp;min_y. to &amp;amp;max_y. by 1);&lt;/P&gt;
&lt;P&gt;series x=time y=estrips / name="mrfss" lineattrs=(thickness=1.85 color=black) markers markerattrs=(size=3.5px color=black) break;&lt;BR /&gt;series x=time y=lower_eff / name="mrfss_ci" lineattrs=(thickness=1.7 pattern=ShortDash color=ligr) break legendlabel="95% Confidence Interval" markers markerattrs=(symbol=x size=4px color=gray);&lt;BR /&gt;series x=time y=upper_eff / lineattrs=(thickness=1.7 pattern=ShortDash color=ligr) break legendlabel=" " markers markerattrs=(symbol=x size=4px color=gray);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yaxis offsetmin=0 ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;ods html close;&lt;BR /&gt;ods graphics off;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am getting&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GPatel_0-1734888390324.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103332iC55BADC8D8414031/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GPatel_0-1734888390324.png" alt="GPatel_0-1734888390324.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Dec 2024 17:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Job-Execution-HTML-cannot-find-png/m-p/954445#M372752</guid>
      <dc:creator>GPatel</dc:creator>
      <dc:date>2024-12-22T17:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Job Execution -  HTML doesn't render sgplot image</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Job-Execution-HTML-cannot-find-png/m-p/955287#M373094</link>
      <description>&lt;P&gt;I'm sorry if I missled you.&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;_ODSOPTIONS" is a parameter that must be submitted to the JobExecution job.&amp;nbsp;The parameter will be handled by the %JESBEGIN-macro.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%JESBEGIN macro will generate a ods-statement for you. To avoid confusion I would remove the ods-statement from your code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code below works for me.&lt;BR /&gt;I call the job with the parameter _ADDJESBEGINENDMACROS set to "false" to prevent %&lt;SPAN&gt;JESBEGIN&amp;nbsp;&lt;/SPAN&gt;from executing &lt;STRONG&gt;before&lt;/STRONG&gt; my own code. Then I call %&lt;SPAN&gt;JESBEGIN from within my code to leverage the functionality within the macro.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Tip: Parameters can be set in job properties.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Tip2: Set the _DEBUG-parameter to true to see what code is generated from %JESBEGIN.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;* Job must be called with parameter _ADDJESBEGINENDMACROS set to "false"	;


%let _ODS_DEVICE = png;
%let _ODSOPTIONS = options(BITMAP_MODE='inline');


options mprint;
%JESBEGIN;
options nomprint;

title; footnote;
proc sgplot data=sashelp.class;
 scatter x=height y=weight;
run;

%JESEND;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jan 2025 09:15:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Job-Execution-HTML-cannot-find-png/m-p/955287#M373094</guid>
      <dc:creator>FredrikHansson</dc:creator>
      <dc:date>2025-01-07T09:15:48Z</dc:date>
    </item>
  </channel>
</rss>

