<?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: How to create multiple pdf reports automatically from a dataset based on a variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-pdf-reports-automatically-from-a-dataset/m-p/664473#M198513</link>
    <description>&lt;P&gt;It does look like a simple report, I don't see the point in in generating unique file names (but it can be possibly done with a gridded ods layout)if he just wants to hand each person their own sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option is to query for unique names and loop through the list and create a unique file name for each using an an ods layout absolute structure.&amp;nbsp; I have created complex dashboards using this technique.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2020 20:24:12 GMT</pubDate>
    <dc:creator>ghosh</dc:creator>
    <dc:date>2020-06-23T20:24:12Z</dc:date>
    <item>
      <title>How to create multiple pdf reports automatically from a dataset based on a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-pdf-reports-automatically-from-a-dataset/m-p/664409#M198489</link>
      <description>&lt;P&gt;Hello. I need to create multiple pdf's based on an individual variable within my data. As my actual data are considered confidential (peoples income), I thought the sashelp.Baseball dataset could be used as a viable example. In that data set there are statistics for 322 players. For this example, I need to create 322 pdfs as "statistics sheets" so one could be given to each player individually. Is there a way to combine a DO group with an ODS statement to do this for me? Or is there another method that would be better for this? I appreciate the help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 17:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-pdf-reports-automatically-from-a-dataset/m-p/664409#M198489</guid>
      <dc:creator>cjschlick</dc:creator>
      <dc:date>2020-06-23T17:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple pdf reports automatically from a dataset based on a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-pdf-reports-automatically-from-a-dataset/m-p/664423#M198492</link>
      <description>&lt;P&gt;Tutorial on converting a working program to a macro&lt;BR /&gt;&lt;BR /&gt;This method is pretty robust and helps prevent errors and makes it much easier to debug your code. Obviously biased, because I wrote it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;A href="https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md" target="_blank"&gt;https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Write your program to generate your stats and graphs for one player and then automate it using the approach above. You'll see that's pretty much exactly what this tutorial does, except it uses SASHELP.CARS data but if you work through it you should see how do it for your own process. It creates HTML files uniquely but you can easily change the ODS statement to be PDF instead.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 17:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-pdf-reports-automatically-from-a-dataset/m-p/664423#M198492</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-06-23T17:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple pdf reports automatically from a dataset based on a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-pdf-reports-automatically-from-a-dataset/m-p/664435#M198494</link>
      <description>&lt;P&gt;You do not need&amp;nbsp; a do loop.&amp;nbsp; you can use Proc report BY Variable to to output to a new page for each player.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you show the code to output stats for a single player? From I can suggest how you can modify that print a unique page for each player&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 18:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-pdf-reports-automatically-from-a-dataset/m-p/664435#M198494</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-06-23T18:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple pdf reports automatically from a dataset based on a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-pdf-reports-automatically-from-a-dataset/m-p/664458#M198504</link>
      <description>You can use BY group processing for only the simplest of cases in my experience, if you need a table and graph for each report By group processing doesn't work. It also doesn't support dynamic naming of files by the group value which are two big missing features IMO. And those are required 99% of the time I've ever had to do most reporting.</description>
      <pubDate>Tue, 23 Jun 2020 19:47:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-pdf-reports-automatically-from-a-dataset/m-p/664458#M198504</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-06-23T19:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple pdf reports automatically from a dataset based on a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-pdf-reports-automatically-from-a-dataset/m-p/664473#M198513</link>
      <description>&lt;P&gt;It does look like a simple report, I don't see the point in in generating unique file names (but it can be possibly done with a gridded ods layout)if he just wants to hand each person their own sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option is to query for unique names and loop through the list and create a unique file name for each using an an ods layout absolute structure.&amp;nbsp; I have created complex dashboards using this technique.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 20:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-pdf-reports-automatically-from-a-dataset/m-p/664473#M198513</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-06-23T20:24:12Z</dc:date>
    </item>
  </channel>
</rss>

