<?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: ODS Powerpoint - Forcing proc sql label text to stay on same line in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ODS-Powerpoint-Forcing-proc-sql-label-text-to-stay-on-same-line/m-p/944346#M42427</link>
    <description>&lt;P&gt;You could switch it into PROC REPORT which have more control in ODS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods powerpoint file ='c:\temp\temp.pptx';
options nodate;
ods escapechar="^";
data sales_august24;
 do id=1 to 100;
  amount=rand('uniform');output;
 end;
run;
ods powerpoint layout=titleandcontent nogtitle style=sapphire;

proc sql noprint;
create table want1 as
select count(distinct ID) as Leads label="Leads for August" format=comma12.
from sales_august24;
create table want2 as
select count(distinct ID) as Customers label="Customers for August" format=comma12.
from sales_august24;
create table want3 as
select sum(amount) as Sales label="Sales for August" format=comma12.
from sales_august24;
quit;
proc report data=want1 nowd ;
define _all_/display style(column)={cellwidth=5cm};
run;
proc report data=want2 nowd ;
define _all_/display style(column)={cellwidth=5cm};
run;
proc report data=want3 nowd ;
define _all_/display style(column)={cellwidth=5cm};
run;

ods powerpoint close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1726641259802.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100467i5CA64F7CB6DCB5FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1726641259802.png" alt="Ksharp_0-1726641259802.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Sep 2024 06:34:26 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-09-18T06:34:26Z</dc:date>
    <item>
      <title>ODS Powerpoint - Forcing proc sql label text to stay on same line</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-Powerpoint-Forcing-proc-sql-label-text-to-stay-on-same-line/m-p/944337#M42426</link>
      <description>&lt;P&gt;Simple question I presume - For my PPT export, part of my code has a slide where a few counts are outputted into simple boxes with a label. However, the label text keeps shifting each word onto a separate line so I end up with 3+ lines for a label. I've tried options/methods that are used for ODS HTML including page size, gridded, etc. but to no avail. Any solution for this or is it better to use an alternate method&amp;nbsp; (e.g. proc report, proc tabulate, etc.)?&lt;/P&gt;&lt;P&gt;Here's a sample of the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods powerpoint file = customers;
options nodate papersize=(10in. 7.5in);
ods escapechar="^"

ods powerpoint layout=titleandcontent nogtitle style=sapphire;

proc sql;
select count(distinct ID) as Leads label="Leads for August" format=comma12.
from leads_august24;
select count(distinct ID) as Customers label="Customers for August" format=comma12.
from sales_august24;
select sum(amount) as Sales label="Sales for August" format=comma12.
from sales_august24;
quit;

ods powerpoint close;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Sep 2024 04:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-Powerpoint-Forcing-proc-sql-label-text-to-stay-on-same-line/m-p/944337#M42426</guid>
      <dc:creator>sasser27</dc:creator>
      <dc:date>2024-09-18T04:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Powerpoint - Forcing proc sql label text to stay on same line</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-Powerpoint-Forcing-proc-sql-label-text-to-stay-on-same-line/m-p/944346#M42427</link>
      <description>&lt;P&gt;You could switch it into PROC REPORT which have more control in ODS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods powerpoint file ='c:\temp\temp.pptx';
options nodate;
ods escapechar="^";
data sales_august24;
 do id=1 to 100;
  amount=rand('uniform');output;
 end;
run;
ods powerpoint layout=titleandcontent nogtitle style=sapphire;

proc sql noprint;
create table want1 as
select count(distinct ID) as Leads label="Leads for August" format=comma12.
from sales_august24;
create table want2 as
select count(distinct ID) as Customers label="Customers for August" format=comma12.
from sales_august24;
create table want3 as
select sum(amount) as Sales label="Sales for August" format=comma12.
from sales_august24;
quit;
proc report data=want1 nowd ;
define _all_/display style(column)={cellwidth=5cm};
run;
proc report data=want2 nowd ;
define _all_/display style(column)={cellwidth=5cm};
run;
proc report data=want3 nowd ;
define _all_/display style(column)={cellwidth=5cm};
run;

ods powerpoint close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1726641259802.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100467i5CA64F7CB6DCB5FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1726641259802.png" alt="Ksharp_0-1726641259802.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 06:34:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-Powerpoint-Forcing-proc-sql-label-text-to-stay-on-same-line/m-p/944346#M42427</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-09-18T06:34:26Z</dc:date>
    </item>
  </channel>
</rss>

