<?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 proc report scale ods pdf in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-scale-ods-pdf/m-p/707782#M217360</link>
    <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt; , you've been helping me out a few minutes ago.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm happy with the ods graphics output but when I choose ods pdf the preimages are shown completely dis-configured.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Furthrmore I'd like to add a grand total but by "producto" in my case. If I use the "rbreak after / summarize ;" statement I get an grand total but not separated by group. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file='/caslibs/marketing/useimg.pdf' ;
options missing=' ';
proc report data=dna.all spanrows nowd style(report)=[rules=none frame=void linethickness=4 ];
where lowcase(brand) ne "other";

title 'KPI overview';
column logo brand producto  ren fin  kpi ;
define brand / group noprint;
define producto / group ;
define ren / sum;
define fin / sum;
define logo / computed  ;
define kpi / computed f=percent9.1;
break before brand / summarize; 
/* rbreak after / summarize; */

compute kpi;
kpi = ren.sum / fin.sum;
if strip(_break_) not in ("_RBREAK_" "" ) then CALL DEFINE('LOGO','STYLE',"STYLE=
{PREIMAGE='/caslibs/marketing/" ||TRIM(lowcase(brand))|| ".png?height=3cm'}");
endcomp;

run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&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="report_out.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52969i8E4D04AE68833517/image-size/large?v=v2&amp;amp;px=999" role="button" title="report_out.png" alt="report_out.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Dec 2020 23:55:20 GMT</pubDate>
    <dc:creator>acordes</dc:creator>
    <dc:date>2020-12-22T23:55:20Z</dc:date>
    <item>
      <title>proc report scale ods pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-scale-ods-pdf/m-p/707782#M217360</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt; , you've been helping me out a few minutes ago.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm happy with the ods graphics output but when I choose ods pdf the preimages are shown completely dis-configured.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Furthrmore I'd like to add a grand total but by "producto" in my case. If I use the "rbreak after / summarize ;" statement I get an grand total but not separated by group. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file='/caslibs/marketing/useimg.pdf' ;
options missing=' ';
proc report data=dna.all spanrows nowd style(report)=[rules=none frame=void linethickness=4 ];
where lowcase(brand) ne "other";

title 'KPI overview';
column logo brand producto  ren fin  kpi ;
define brand / group noprint;
define producto / group ;
define ren / sum;
define fin / sum;
define logo / computed  ;
define kpi / computed f=percent9.1;
break before brand / summarize; 
/* rbreak after / summarize; */

compute kpi;
kpi = ren.sum / fin.sum;
if strip(_break_) not in ("_RBREAK_" "" ) then CALL DEFINE('LOGO','STYLE',"STYLE=
{PREIMAGE='/caslibs/marketing/" ||TRIM(lowcase(brand))|| ".png?height=3cm'}");
endcomp;

run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&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="report_out.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52969i8E4D04AE68833517/image-size/large?v=v2&amp;amp;px=999" role="button" title="report_out.png" alt="report_out.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 23:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-scale-ods-pdf/m-p/707782#M217360</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2020-12-22T23:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc report scale ods pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-scale-ods-pdf/m-p/707850#M217404</link>
      <description>&lt;P&gt;For sizing the graph, have you tried goptions? For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Size each graph 4in x 4in */
goptions hsize=4in vsize=4in;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;from&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=graphref&amp;amp;docsetTarget=p0wtchgwnh41ctn1xcu6pfx4geqm.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=graphref&amp;amp;docsetTarget=p0wtchgwnh41ctn1xcu6pfx4geqm.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 09:01:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-scale-ods-pdf/m-p/707850#M217404</guid>
      <dc:creator>Norman21</dc:creator>
      <dc:date>2020-12-23T09:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc report scale ods pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-scale-ods-pdf/m-p/707862#M217410</link>
      <description>&lt;P&gt;Unfortunately this doesn't fix the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the best result is when I use ods htm.&lt;/P&gt;
&lt;P&gt;but it's not as automatic as I hoped.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After executing the code I download the htm to my windows environment's folder where I dropped as well the png the code dynamically assigns to "logo".&lt;/P&gt;
&lt;P&gt;In order to achieve the right sizing of the images I open the htm with a text editor and add a height statement to the htm img line.&lt;/P&gt;
&lt;P&gt;&amp;lt;img alt="" src="C:\Users\DKXENLO\Pictures\audi.png" &lt;FONT color="#FF0000"&gt;style="width=5cm"&lt;/FONT&gt;&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 escapechar='^';
ods html file='/caslibs/danalytics/kapi.htm' ;
options missing=' ';
proc report data=dna.all spanrows nowd style(report)=[rules=none frame=void linethickness=4 ];
where lowcase(brand) ne "other";

title 'KPI overview';
column logo  brand producto  ren fin  kpi ;
define brand / group noprint;
define producto / group ;
define ren / sum;
define fin / sum;
define logo / computed  ;
define kpi / computed f=percent9.1;
break before brand / summarize; 
rbreak after / summarize  ;

compute kpi;
kpi = ren.sum / fin.sum;
if strip(_break_) not in ("_RBREAK_" "") then CALL DEFINE('LOGO','STYLE',"STYLE=
{PREIMAGE="" " ||TRIM(lowcase(brand))|| ".png?height=3cm"" }");
endcomp;

run;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Dec 2020 11:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-scale-ods-pdf/m-p/707862#M217410</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2020-12-23T11:21:25Z</dc:date>
    </item>
  </channel>
</rss>

