<?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 Export your SAS as pdf in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Export-your-SAS-as-pdf/m-p/370719#M275815</link>
    <description>Hi:&lt;BR /&gt;  Look at the paper link that I posted. In that paper, it shows how to make a macro variable that you can use for the file name. By extending those concepts to select on age and person, you can make a  macro program to do what you want. It would NOT actually make sense with SASHELP.CLASS to write a macro by AGE and PERSON (NAME) because there is only 1 person for every name, but multiple people for every age.&lt;BR /&gt;&lt;BR /&gt;  To do what you want, you need to understand both macro variables and macro programs. The paper link I posted has enough information to get you started.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
    <pubDate>Mon, 26 Jun 2017 19:19:03 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2017-06-26T19:19:03Z</dc:date>
    <item>
      <title>How to Export your SAS as pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Export-your-SAS-as-pdf/m-p/370635#M275812</link>
      <description>&lt;P&gt;In my output some roll numbers are there with each roll number 10 to 30 transactions are there, i want to export each roll number as a pdf file, can anybody help to write macro or sas code to export each roll number transactions into one pdf&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 15:39:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Export-your-SAS-as-pdf/m-p/370635#M275812</guid>
      <dc:creator>venkatavmalla</dc:creator>
      <dc:date>2017-06-26T15:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Export your SAS as pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Export-your-SAS-as-pdf/m-p/370640#M275813</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; If you use BY group processing, SAS and ODS will automatically make a PDF file for every BY group. Consider this code, which makes 1 PDF for every age when age is used as a BY variable with a BY statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class;
  by age;
  where age in (12, 13, 14);
run;
 
ods pdf file='c:\temp\bygrp_age1.pdf' newfile=bygroup;
 
proc print data=class;
by age;
var age name sex height weight;
run;
 
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For example, the above code makes 3 PDF files, one for each AGE -- and changes the name for each file it makes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Age 12&amp;nbsp;c:\temp\bygrp_age1.pdf&lt;/P&gt;
&lt;P&gt;Age 13&amp;nbsp;c:\temp\bygrp_age2.pdf&lt;/P&gt;
&lt;P&gt;Age 14&amp;nbsp;c:\temp\bygrp_age3.pdf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You only need a SAS macro approach if you want to control the names of the output files being created. Otherwise NEWFILE=BYGROUP does it for you automatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If you need a macro program, you will find a relevant example in this paper:&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings13/120-2013.pdf&amp;nbsp;" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings13/120-2013.pdf&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 15:58:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Export-your-SAS-as-pdf/m-p/370640#M275813</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-06-26T15:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Export your SAS as pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Export-your-SAS-as-pdf/m-p/370714#M275814</link>
      <description>&lt;P&gt;Thank you for your solutions it is working, but please help on one more..&amp;nbsp; i want to save each file with that age and person name automatically can you help on this&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 18:56:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Export-your-SAS-as-pdf/m-p/370714#M275814</guid>
      <dc:creator>venkatavmalla</dc:creator>
      <dc:date>2017-06-26T18:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Export your SAS as pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Export-your-SAS-as-pdf/m-p/370719#M275815</link>
      <description>Hi:&lt;BR /&gt;  Look at the paper link that I posted. In that paper, it shows how to make a macro variable that you can use for the file name. By extending those concepts to select on age and person, you can make a  macro program to do what you want. It would NOT actually make sense with SASHELP.CLASS to write a macro by AGE and PERSON (NAME) because there is only 1 person for every name, but multiple people for every age.&lt;BR /&gt;&lt;BR /&gt;  To do what you want, you need to understand both macro variables and macro programs. The paper link I posted has enough information to get you started.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Mon, 26 Jun 2017 19:19:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Export-your-SAS-as-pdf/m-p/370719#M275815</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-06-26T19:19:03Z</dc:date>
    </item>
  </channel>
</rss>

