<?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 It is possible to ods output only only html that embodies all png generated by the sgplot? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-ods-output-only-only-html-that-embodies-all/m-p/855581#M338122</link>
    <description>&lt;P&gt;The attached code runs successfully, but it generates as many png files as there are plots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can I tweak it in order to get only one html?&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="pic.png" style="width: 841px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79793i6417DBD551A9E92A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic.png" alt="pic.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS GRAPHICS ON / height=800 width=1400 reset=all border=off antialiasmax=2500 tipmax=2500 
imagemap=on imagename='histogram plus kernel'; 
ods html5 path="/caslibs/reportspr/" (url=none) 
body="hist_&amp;amp;tab..htm";

ods layout gridded columns=2  advance=proc column_gutter=0.1in row_gutter=0.1in;

%macro loop;
   proc sql noprint;
       select distinct _name_ into :vlist separated by '|' from CASUSER.MYDATA_RUSTATS2;
   quit;

   %do i = 1 %to %sysfunc(countw(&amp;amp;vlist,|));
title "Histogram and kernel overlay for outlier treated variable %Qscan(%superq(vlist),&amp;amp;i,|)";
ods proclabel "Histogram &amp;amp; kernel %Qscan(%superq(vlist),&amp;amp;i,|)";

ods graphics / width=8cm;
proc sgplot data=CASUSER.MYDATA_RUSTATS2; 
label value1="value %Qscan(%superq(vlist),&amp;amp;i,|)";  
             where _name_="%Qscan(%superq(vlist),&amp;amp;i,|)";
  histogram value1 / dataskin=sheen fillattrs=(color=bigb)    ;
  density value1 / type=kernel transparency=0.4;
             yaxis label="Density (pdf)";
        run;

    %end;
%mend;
%loop; 

ods layout end;

ods graphics / reset;

ods html5 close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 25 Jan 2023 15:51:56 GMT</pubDate>
    <dc:creator>acordes</dc:creator>
    <dc:date>2023-01-25T15:51:56Z</dc:date>
    <item>
      <title>It is possible to ods output only only html that embodies all png generated by the sgplot?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-ods-output-only-only-html-that-embodies-all/m-p/855581#M338122</link>
      <description>&lt;P&gt;The attached code runs successfully, but it generates as many png files as there are plots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can I tweak it in order to get only one html?&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="pic.png" style="width: 841px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79793i6417DBD551A9E92A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic.png" alt="pic.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS GRAPHICS ON / height=800 width=1400 reset=all border=off antialiasmax=2500 tipmax=2500 
imagemap=on imagename='histogram plus kernel'; 
ods html5 path="/caslibs/reportspr/" (url=none) 
body="hist_&amp;amp;tab..htm";

ods layout gridded columns=2  advance=proc column_gutter=0.1in row_gutter=0.1in;

%macro loop;
   proc sql noprint;
       select distinct _name_ into :vlist separated by '|' from CASUSER.MYDATA_RUSTATS2;
   quit;

   %do i = 1 %to %sysfunc(countw(&amp;amp;vlist,|));
title "Histogram and kernel overlay for outlier treated variable %Qscan(%superq(vlist),&amp;amp;i,|)";
ods proclabel "Histogram &amp;amp; kernel %Qscan(%superq(vlist),&amp;amp;i,|)";

ods graphics / width=8cm;
proc sgplot data=CASUSER.MYDATA_RUSTATS2; 
label value1="value %Qscan(%superq(vlist),&amp;amp;i,|)";  
             where _name_="%Qscan(%superq(vlist),&amp;amp;i,|)";
  histogram value1 / dataskin=sheen fillattrs=(color=bigb)    ;
  density value1 / type=kernel transparency=0.4;
             yaxis label="Density (pdf)";
        run;

    %end;
%mend;
%loop; 

ods layout end;

ods graphics / reset;

ods html5 close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jan 2023 15:51:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-ods-output-only-only-html-that-embodies-all/m-p/855581#M338122</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2023-01-25T15:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to ods output only only html that embodies all png generated by the sgplot?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-ods-output-only-only-html-that-embodies-all/m-p/855583#M338124</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Can I tweak it in order to get only one html?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do get one HTML file. Each plot that appears in the HTML file requires a .png file on your disk.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 15:54:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-ods-output-only-only-html-that-embodies-all/m-p/855583#M338124</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-25T15:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to ods output only only html that embodies all png generated by the sgplot?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-ods-output-only-only-html-that-embodies-all/m-p/855586#M338126</link>
      <description>&lt;P&gt;Do you have the regular ODS HTML destination open as well? My initial suggestion was going to be use HTML5 but I see you're already doing that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: I just tested with HTML5, it doesn't generate separate files, so you likely have another destination open.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 16:05:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-ods-output-only-only-html-that-embodies-all/m-p/855586#M338126</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-01-25T16:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to ods output only only html that embodies all png generated by the sgplot?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-ods-output-only-only-html-that-embodies-all/m-p/855590#M338129</link>
      <description>&lt;P&gt;Yes, I get already one file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and many png files.&lt;/P&gt;
&lt;P&gt;But if it's like this, then it's fine.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 16:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-ods-output-only-only-html-that-embodies-all/m-p/855590#M338129</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2023-01-25T16:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to ods output only only html that embodies all png generated by the sgplot?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-ods-output-only-only-html-that-embodies-all/m-p/855591#M338130</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Can I tweak it in order to get only one html?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do get one HTML file. Each plot that appears in the HTML file requires a .png file on your disk.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;HTML does, HTML5 does not, it embeds the images in the file.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 16:26:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-ods-output-only-only-html-that-embodies-all/m-p/855591#M338130</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-01-25T16:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to ods output only only html that embodies all png generated by the sgplot?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-ods-output-only-only-html-that-embodies-all/m-p/855595#M338131</link>
      <description>&lt;P&gt;It's not in Studio, I suppose it's possible CAS is different, but I suspect you do have another destination open&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTML5&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="Reeza_0-1674664523001.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79794i6A53886ABD064BEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Reeza_0-1674664523001.png" alt="Reeza_0-1674664523001.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTML&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Reeza_1-1674664639268.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79795i143D482418F2D4C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Reeza_1-1674664639268.png" alt="Reeza_1-1674664639268.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>Wed, 25 Jan 2023 16:37:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-ods-output-only-only-html-that-embodies-all/m-p/855595#M338131</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-01-25T16:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to ods output only only html that embodies all png generated by the sgplot?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-ods-output-only-only-html-that-embodies-all/m-p/855664#M338141</link>
      <description>I've seen that my file extension is 'htm' while yours is 'html'&lt;BR /&gt;&lt;BR /&gt;Perhaps that's the culprit.&lt;BR /&gt;Tomorrow I'll test.</description>
      <pubDate>Wed, 25 Jan 2023 23:39:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-ods-output-only-only-html-that-embodies-all/m-p/855664#M338141</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2023-01-25T23:39:41Z</dc:date>
    </item>
  </channel>
</rss>

