<?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: Producing PDFs per by-Group in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-PDFs-per-by-Group/m-p/322533#M17678</link>
    <description>&lt;P&gt;Hi, well before I go down the macro road, I usually try ODS PDF with the NEWFILE= option. I usually only use Macro processing if I need to control the names of the output PDF files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6579i68B1BE6D3C52AFC3/image-size/original?v=v2&amp;amp;px=-1" alt="newfile_pdf.png" title="newfile_pdf.png" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2017 22:40:19 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2017-01-04T22:40:19Z</dc:date>
    <item>
      <title>Producing PDFs per by-Group</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-PDFs-per-by-Group/m-p/322352#M17666</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I generate a series of PDFs by defining a macro containing some procedures and the PDF definition. Within the macro data to be reported are subsetted for each by-value. Finally the macro is executed with call execute for each by-value.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Program is like this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro writepdf (byvalue);&lt;/P&gt;&lt;P&gt;ODS PDF body="&amp;amp;byvalue..PDF"; * one PDF for each by-value;&lt;/P&gt;&lt;P&gt;proc print data=LISTDATA; where Var1="&amp;amp;byvalue"; run;&lt;/P&gt;&lt;P&gt;ODS PDF close;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data _null_; set BYVALUES;&lt;/P&gt;&lt;P&gt;Call execute('%writepdf(' !! byvalue !! ')');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any faster -more direct- way to produce the PDFs per by group (without multiple reading the LISTDATA-dataset)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all answers,&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 09:11:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-PDFs-per-by-Group/m-p/322352#M17666</guid>
      <dc:creator>Karlb</dc:creator>
      <dc:date>2017-01-04T09:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Producing PDFs per by-Group</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-PDFs-per-by-Group/m-p/322533#M17678</link>
      <description>&lt;P&gt;Hi, well before I go down the macro road, I usually try ODS PDF with the NEWFILE= option. I usually only use Macro processing if I need to control the names of the output PDF files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6579i68B1BE6D3C52AFC3/image-size/original?v=v2&amp;amp;px=-1" alt="newfile_pdf.png" title="newfile_pdf.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 22:40:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-PDFs-per-by-Group/m-p/322533#M17678</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-01-04T22:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Producing PDFs per by-Group</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-PDFs-per-by-Group/m-p/322804#M17683</link>
      <description>Thank you very much Cynthia...the option is exactly what I was looking for. Sincerly Karl</description>
      <pubDate>Thu, 05 Jan 2017 21:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Producing-PDFs-per-by-Group/m-p/322804#M17683</guid>
      <dc:creator>Karlb</dc:creator>
      <dc:date>2017-01-05T21:05:47Z</dc:date>
    </item>
  </channel>
</rss>

