<?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: Inserting a separate PDF file into ODS output in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inserting-a-separate-PDF-file-into-ODS-output/m-p/33604#M4881</link>
    <description>Hi:&lt;BR /&gt;
  Even though there's no way to merge 2 PDF files together, you CAN create a COVER page when you need it by using a technique similar to that shown below.&lt;BR /&gt;
&lt;BR /&gt;
  Basically, use a DATA step to create a file that will become your "cover page" data and then use PROC REPORT with the NOHEADER option to display that data with all the interior table lines turned off. I kept my data really simple, I have an ORD variable and a NOTE variable. I use the ORD variable to make the first line bigger than the comment lines with a CALL DEFINE.&lt;BR /&gt;
&lt;BR /&gt;
  You could read the cover page text from a flat file, too and then tailor your PROC REPORT to the var names from the file. Although it's not the same as having the ability to combine 2 PDF files, if all you need is a simple cover page, then you CAN get it.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
           &lt;BR /&gt;
options nodate nonumber orientation=portrait;&lt;BR /&gt;
data cover;&lt;BR /&gt;
  length ord 8 note $425;&lt;BR /&gt;
  ord = 1;&lt;BR /&gt;
  note = 'Assumptions';&lt;BR /&gt;
  output;&lt;BR /&gt;
  ord = 2;&lt;BR /&gt;
  note = '1) All data will be "scrubbed" and error-free.';&lt;BR /&gt;
  output;&lt;BR /&gt;
  ord = 3;&lt;BR /&gt;
  note = '2) All Sales are CLOSED status';&lt;BR /&gt;
  output;&lt;BR /&gt;
  ord = 4;&lt;BR /&gt;
  note = '3) Pending Sales must be closed by month-end date or they will be reported in the next month.';&lt;BR /&gt;
  output;&lt;BR /&gt;
  ord = 5;&lt;BR /&gt;
  note = '4) Sales under $500 show under MISC category, not under Order Type';&lt;BR /&gt;
  output;&lt;BR /&gt;
  ord=6;&lt;BR /&gt;
  note = '5) And this is a really, really, really, really, '||&lt;BR /&gt;
         'really, really, really, really, really, really, '||&lt;BR /&gt;
         'totally long, very long, comment. It includes '||&lt;BR /&gt;
         'the word "supercalifragilisticexpialidocious", even '||&lt;BR /&gt;
         'though the sound of it is something quite atrocious. '||&lt;BR /&gt;
         'You might prefer a comment that included jabberwocks '||&lt;BR /&gt;
         'and slithy toves and mimsy borogroves, but Alice decided '||&lt;BR /&gt;
         'that she really did not care to comment on the report.';&lt;BR /&gt;
  output;&lt;BR /&gt;
run;&lt;BR /&gt;
                      &lt;BR /&gt;
ods pdf file='c:\temp\coverpage.pdf';&lt;BR /&gt;
  title; footnote;&lt;BR /&gt;
  proc report data=cover nowd noheader&lt;BR /&gt;
    style(report)={rules=none frame=void cellspacing=0}&lt;BR /&gt;
    style(lines)={font_size=18pt font_style=italic font_weight=bold};&lt;BR /&gt;
    column ord note;&lt;BR /&gt;
    define ord / order noprint;&lt;BR /&gt;
    define note / display &lt;BR /&gt;
       style={font_weight=medium font_size=14pt just=l};&lt;BR /&gt;
    compute note;&lt;BR /&gt;
      if ord = 1 then &lt;BR /&gt;
        call define(_ROW_,'style',&lt;BR /&gt;
         'style={font_weight=bold font_size=18pt just=c}');&lt;BR /&gt;
    endcomp;&lt;BR /&gt;
    compute after;&lt;BR /&gt;
      line ' ';&lt;BR /&gt;
      line ' ';&lt;BR /&gt;
      line 'Company Confidential';&lt;BR /&gt;
    endcomp;&lt;BR /&gt;
  run;&lt;BR /&gt;
                      &lt;BR /&gt;
  proc report data=sashelp.shoes nowd;&lt;BR /&gt;
    title 'Sales Report';&lt;BR /&gt;
    where region in ('Asia', 'Canada');&lt;BR /&gt;
     column region product sales;&lt;BR /&gt;
     define region / group;&lt;BR /&gt;
     define product / group;&lt;BR /&gt;
     define sales/ sum;&lt;BR /&gt;
     rbreak after/ summarize;&lt;BR /&gt;
  run;&lt;BR /&gt;
                      &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
    &lt;BR /&gt;
[/pre]</description>
    <pubDate>Wed, 23 Jul 2008 19:34:59 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-07-23T19:34:59Z</dc:date>
    <item>
      <title>Inserting a separate PDF file into ODS output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inserting-a-separate-PDF-file-into-ODS-output/m-p/33602#M4879</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I've got a program that generates PROC REPORT output into a PDF file.  Now we want to prefix this file with a static page of text that describes the descriptions and assumptions of these reports.&lt;BR /&gt;
&lt;BR /&gt;
If I did this in Adobe Acrobat, I'd use the &lt;B&gt;File &amp;gt; Combine Files&lt;/B&gt; option and simply combine the two files into one.  Is there a way to do this in SAS?&lt;BR /&gt;
&lt;BR /&gt;
I guess I want an ODS PDF INSERTDOC= statement.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Earl</description>
      <pubDate>Wed, 23 Jul 2008 17:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inserting-a-separate-PDF-file-into-ODS-output/m-p/33602#M4879</guid>
      <dc:creator>Earl_W</dc:creator>
      <dc:date>2008-07-23T17:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting a separate PDF file into ODS output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inserting-a-separate-PDF-file-into-ODS-output/m-p/33603#M4880</link>
      <description>Currently there is no way to merge PDF files within SAS.  We are looking into that suggestion for a future release.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Scott</description>
      <pubDate>Wed, 23 Jul 2008 18:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inserting-a-separate-PDF-file-into-ODS-output/m-p/33603#M4880</guid>
      <dc:creator>ScottH_SAS</dc:creator>
      <dc:date>2008-07-23T18:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting a separate PDF file into ODS output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inserting-a-separate-PDF-file-into-ODS-output/m-p/33604#M4881</link>
      <description>Hi:&lt;BR /&gt;
  Even though there's no way to merge 2 PDF files together, you CAN create a COVER page when you need it by using a technique similar to that shown below.&lt;BR /&gt;
&lt;BR /&gt;
  Basically, use a DATA step to create a file that will become your "cover page" data and then use PROC REPORT with the NOHEADER option to display that data with all the interior table lines turned off. I kept my data really simple, I have an ORD variable and a NOTE variable. I use the ORD variable to make the first line bigger than the comment lines with a CALL DEFINE.&lt;BR /&gt;
&lt;BR /&gt;
  You could read the cover page text from a flat file, too and then tailor your PROC REPORT to the var names from the file. Although it's not the same as having the ability to combine 2 PDF files, if all you need is a simple cover page, then you CAN get it.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
           &lt;BR /&gt;
options nodate nonumber orientation=portrait;&lt;BR /&gt;
data cover;&lt;BR /&gt;
  length ord 8 note $425;&lt;BR /&gt;
  ord = 1;&lt;BR /&gt;
  note = 'Assumptions';&lt;BR /&gt;
  output;&lt;BR /&gt;
  ord = 2;&lt;BR /&gt;
  note = '1) All data will be "scrubbed" and error-free.';&lt;BR /&gt;
  output;&lt;BR /&gt;
  ord = 3;&lt;BR /&gt;
  note = '2) All Sales are CLOSED status';&lt;BR /&gt;
  output;&lt;BR /&gt;
  ord = 4;&lt;BR /&gt;
  note = '3) Pending Sales must be closed by month-end date or they will be reported in the next month.';&lt;BR /&gt;
  output;&lt;BR /&gt;
  ord = 5;&lt;BR /&gt;
  note = '4) Sales under $500 show under MISC category, not under Order Type';&lt;BR /&gt;
  output;&lt;BR /&gt;
  ord=6;&lt;BR /&gt;
  note = '5) And this is a really, really, really, really, '||&lt;BR /&gt;
         'really, really, really, really, really, really, '||&lt;BR /&gt;
         'totally long, very long, comment. It includes '||&lt;BR /&gt;
         'the word "supercalifragilisticexpialidocious", even '||&lt;BR /&gt;
         'though the sound of it is something quite atrocious. '||&lt;BR /&gt;
         'You might prefer a comment that included jabberwocks '||&lt;BR /&gt;
         'and slithy toves and mimsy borogroves, but Alice decided '||&lt;BR /&gt;
         'that she really did not care to comment on the report.';&lt;BR /&gt;
  output;&lt;BR /&gt;
run;&lt;BR /&gt;
                      &lt;BR /&gt;
ods pdf file='c:\temp\coverpage.pdf';&lt;BR /&gt;
  title; footnote;&lt;BR /&gt;
  proc report data=cover nowd noheader&lt;BR /&gt;
    style(report)={rules=none frame=void cellspacing=0}&lt;BR /&gt;
    style(lines)={font_size=18pt font_style=italic font_weight=bold};&lt;BR /&gt;
    column ord note;&lt;BR /&gt;
    define ord / order noprint;&lt;BR /&gt;
    define note / display &lt;BR /&gt;
       style={font_weight=medium font_size=14pt just=l};&lt;BR /&gt;
    compute note;&lt;BR /&gt;
      if ord = 1 then &lt;BR /&gt;
        call define(_ROW_,'style',&lt;BR /&gt;
         'style={font_weight=bold font_size=18pt just=c}');&lt;BR /&gt;
    endcomp;&lt;BR /&gt;
    compute after;&lt;BR /&gt;
      line ' ';&lt;BR /&gt;
      line ' ';&lt;BR /&gt;
      line 'Company Confidential';&lt;BR /&gt;
    endcomp;&lt;BR /&gt;
  run;&lt;BR /&gt;
                      &lt;BR /&gt;
  proc report data=sashelp.shoes nowd;&lt;BR /&gt;
    title 'Sales Report';&lt;BR /&gt;
    where region in ('Asia', 'Canada');&lt;BR /&gt;
     column region product sales;&lt;BR /&gt;
     define region / group;&lt;BR /&gt;
     define product / group;&lt;BR /&gt;
     define sales/ sum;&lt;BR /&gt;
     rbreak after/ summarize;&lt;BR /&gt;
  run;&lt;BR /&gt;
                      &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
    &lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 23 Jul 2008 19:34:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inserting-a-separate-PDF-file-into-ODS-output/m-p/33604#M4881</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-07-23T19:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting a separate PDF file into ODS output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inserting-a-separate-PDF-file-into-ODS-output/m-p/33605#M4882</link>
      <description>Thanks, Scott and Cynthia.&lt;BR /&gt;
&lt;BR /&gt;
Cynthia, your supercalifragilisticexpialidocious example was my "Plan B."  I guess I'll implement it.&lt;BR /&gt;
&lt;BR /&gt;
Earl</description>
      <pubDate>Wed, 23 Jul 2008 20:26:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inserting-a-separate-PDF-file-into-ODS-output/m-p/33605#M4882</guid>
      <dc:creator>Earl_W</dc:creator>
      <dc:date>2008-07-23T20:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting a separate PDF file into ODS output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inserting-a-separate-PDF-file-into-ODS-output/m-p/33606#M4883</link>
      <description>With a spoonful of sugar, I hope!</description>
      <pubDate>Wed, 23 Jul 2008 21:43:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Inserting-a-separate-PDF-file-into-ODS-output/m-p/33606#M4883</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-07-23T21:43:58Z</dc:date>
    </item>
  </channel>
</rss>

