<?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 define macro variables to create multiple ppt slides in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/define-macro-variables-to-create-multiple-ppt-slides/m-p/473424#M121491</link>
    <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create data driven macro based on table values to export several ppt slides.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the table called "Acc":&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="Calibri"&gt;Acc&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000" face="Calibri"&gt;261726&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000" face="Calibri"&gt;109338&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri"&gt;79878&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need something like the&amp;nbsp;below&amp;nbsp;but instead of number 1-3 assign the values from the table and generate slide for each of the value:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%MACRO generate;&lt;BR /&gt;%do i=1 %to 3 ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;goptions reset= all&amp;nbsp; device= PNGT;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;ods powerpoint&lt;BR /&gt;&amp;nbsp;&amp;nbsp;file="&amp;amp;p\RegionalActivity_&amp;amp;i..ppt" nogtitle nogfootnote&lt;BR /&gt;style=htmlblue;&lt;BR /&gt;options nodate nonumber;&lt;/P&gt;&lt;P&gt;&amp;nbsp;goptions reset= all; ods graphics / reset=all;&lt;/P&gt;&lt;P&gt;ods region;&lt;/P&gt;&lt;P&gt;proc odstext;&lt;BR /&gt;p "&amp;amp;i"/ style = [font_size = 16pt color=#2f4696 background=a00000000];&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;ods layout end;&lt;BR /&gt;&amp;nbsp;ods powerpoint close;&lt;BR /&gt;%END;&lt;BR /&gt;%MEND generate;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%Generate;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Can you please advise how to define the variables? Apologies if this was already described but I haven't found appropriate answer.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jun 2018 15:09:41 GMT</pubDate>
    <dc:creator>bon0</dc:creator>
    <dc:date>2018-06-26T15:09:41Z</dc:date>
    <item>
      <title>define macro variables to create multiple ppt slides</title>
      <link>https://communities.sas.com/t5/SAS-Programming/define-macro-variables-to-create-multiple-ppt-slides/m-p/473424#M121491</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create data driven macro based on table values to export several ppt slides.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the table called "Acc":&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#000000" face="Calibri"&gt;Acc&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000" face="Calibri"&gt;261726&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#000000" face="Calibri"&gt;109338&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri"&gt;79878&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need something like the&amp;nbsp;below&amp;nbsp;but instead of number 1-3 assign the values from the table and generate slide for each of the value:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%MACRO generate;&lt;BR /&gt;%do i=1 %to 3 ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;goptions reset= all&amp;nbsp; device= PNGT;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;ods powerpoint&lt;BR /&gt;&amp;nbsp;&amp;nbsp;file="&amp;amp;p\RegionalActivity_&amp;amp;i..ppt" nogtitle nogfootnote&lt;BR /&gt;style=htmlblue;&lt;BR /&gt;options nodate nonumber;&lt;/P&gt;&lt;P&gt;&amp;nbsp;goptions reset= all; ods graphics / reset=all;&lt;/P&gt;&lt;P&gt;ods region;&lt;/P&gt;&lt;P&gt;proc odstext;&lt;BR /&gt;p "&amp;amp;i"/ style = [font_size = 16pt color=#2f4696 background=a00000000];&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;ods layout end;&lt;BR /&gt;&amp;nbsp;ods powerpoint close;&lt;BR /&gt;%END;&lt;BR /&gt;%MEND generate;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%Generate;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Can you please advise how to define the variables? Apologies if this was already described but I haven't found appropriate answer.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 15:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/define-macro-variables-to-create-multiple-ppt-slides/m-p/473424#M121491</guid>
      <dc:creator>bon0</dc:creator>
      <dc:date>2018-06-26T15:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: define macro variables to create multiple ppt slides</title>
      <link>https://communities.sas.com/t5/SAS-Programming/define-macro-variables-to-create-multiple-ppt-slides/m-p/473431#M121493</link>
      <description>&lt;P&gt;A typical case for call execute:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%MACRO generate(i);
  
goptions reset= all  device= PNGT;
 
 ods powerpoint
  file="&amp;amp;p\RegionalActivity_&amp;amp;i..ppt" nogtitle nogfootnote
style=htmlblue;
options nodate nonumber;

 goptions reset= all; ods graphics / reset=all;

ods region;

proc odstext;
p "&amp;amp;i"/ style = [font_size = 16pt color=#2f4696 background=a00000000];
run;

  ods layout end;
 ods powerpoint close;
%MEND generate;

data _null_;
set acc;
call execute('%generate(' !! trim(acc) !! ');');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Jun 2018 15:22:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/define-macro-variables-to-create-multiple-ppt-slides/m-p/473431#M121493</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-26T15:22:25Z</dc:date>
    </item>
  </channel>
</rss>

