<?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: Can we get all proc print outputs in one PDF doc in SAS/EG? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-we-get-all-proc-print-outputs-in-one-PDF-doc-in-SAS-EG/m-p/71433#M8194</link>
    <description>[pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data one;&lt;BR /&gt;
 title='The Very First Title';&lt;BR /&gt;
run;&lt;BR /&gt;
data two;&lt;BR /&gt;
 title="The Cynthia's title";&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods pdf file='c:\temp\more_than_one.pdf' startpage=no uniform;&lt;BR /&gt;
                &lt;BR /&gt;
proc report data=one nowd noheader style={frame=void};&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=sashelp.class(obs=5);&lt;BR /&gt;
  run;&lt;BR /&gt;
      &lt;BR /&gt;
proc report data=two nowd noheader style={frame=void};&lt;BR /&gt;
run; &lt;BR /&gt;
proc print data=sashelp.shoes(obs=10);&lt;BR /&gt;
  run;&lt;BR /&gt;
                    &lt;BR /&gt;
  &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
    <pubDate>Thu, 02 Jun 2011 07:33:28 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2011-06-02T07:33:28Z</dc:date>
    <item>
      <title>Can we get all proc print outputs in one PDF doc in SAS/EG?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-we-get-all-proc-print-outputs-in-one-PDF-doc-in-SAS-EG/m-p/71428#M8189</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
Here i have a question about Proc print pdf output.&lt;BR /&gt;
I would like to get all my proc print outputs together in one pdf page in the results tab (i am getting one output in one page).&lt;BR /&gt;
&lt;BR /&gt;
Do we have any option to get this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
SRi</description>
      <pubDate>Tue, 31 May 2011 13:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-we-get-all-proc-print-outputs-in-one-PDF-doc-in-SAS-EG/m-p/71428#M8189</guid>
      <dc:creator>srisai</dc:creator>
      <dc:date>2011-05-31T13:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can we get all proc print outputs in one PDF doc in SAS/EG?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-we-get-all-proc-print-outputs-in-one-PDF-doc-in-SAS-EG/m-p/71429#M8190</link>
      <description>Hi:&lt;BR /&gt;
   With code techniques, it is possible to get multiple PROC PRINTs in one PDF file:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
ods pdf(id=specpdf) file='c:\temp\more_than_one.pdf';&lt;BR /&gt;
  proc print data=sashelp.class(obs=5);&lt;BR /&gt;
  title 'One';&lt;BR /&gt;
  run;&lt;BR /&gt;
          &lt;BR /&gt;
  proc print data=sashelp.cars(obs=5);&lt;BR /&gt;
  title 'Two';&lt;BR /&gt;
  run;&lt;BR /&gt;
                 &lt;BR /&gt;
  proc print data=sashelp.shoes(obs=5);&lt;BR /&gt;
  title 'Three';&lt;BR /&gt;
  run;&lt;BR /&gt;
    &lt;BR /&gt;
  proc print data=sashelp.prdsale(obs=5);&lt;BR /&gt;
  title 'Four';&lt;BR /&gt;
  run;&lt;BR /&gt;
ods pdf(id=specpdf) close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
         &lt;BR /&gt;
Normally, you do not need to use the ID= suboption when you create output, however, EG uses a special ID= suboption for its results and so the ID= suboption in the above code will prevent a "collision" with any ID= suboption that EG uses automatically. When I submit the above code, using EG 4.3, the ODS _ALL_ CLOSE; statement will close the default SASReport output, causing 1 blank result tab for the SASReport output. Then, there will be a second tab for the PDF results -- of 1 PDF file with 4 PROC PRINTs.               &lt;BR /&gt;
                   &lt;BR /&gt;
However, as to how you accomplish this in SAS Enterprise Guide using point and click techniques, I am not sure. Perhaps, you can enter code to execute at the beginning and end of the project? Otherwise, generally, in EG, every task gets a separate result. You might want to ask this question in the SAS Enterprise Guide forum if the code technique will not work for you.&lt;BR /&gt;
   &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 31 May 2011 14:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-we-get-all-proc-print-outputs-in-one-PDF-doc-in-SAS-EG/m-p/71429#M8190</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-05-31T14:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can we get all proc print outputs in one PDF doc in SAS/EG?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-we-get-all-proc-print-outputs-in-one-PDF-doc-in-SAS-EG/m-p/71430#M8191</link>
      <description>This is also sounds good........we have title for every proc print and here can we have a global title for all the proc print codes along with each proc print title??&lt;BR /&gt;
Please respond..&lt;BR /&gt;
&lt;BR /&gt;
Thanks,</description>
      <pubDate>Wed, 01 Jun 2011 16:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-we-get-all-proc-print-outputs-in-one-PDF-doc-in-SAS-EG/m-p/71430#M8191</guid>
      <dc:creator>srisai</dc:creator>
      <dc:date>2011-06-01T16:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can we get all proc print outputs in one PDF doc in SAS/EG?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-we-get-all-proc-print-outputs-in-one-PDF-doc-in-SAS-EG/m-p/71431#M8192</link>
      <description>Hi:&lt;BR /&gt;
  I am confused. All SAS titles are GLOBAL (you can have up to 10 TITLE and 10 FOOTNOTE statements in your report output). I just put  a separate TITLE statement for each PROC PRINT so you could see which page in the output came from which PROC PRINT step.&lt;BR /&gt;
 &lt;BR /&gt;
  If there had been ONLY 1 TITLE statement at the top of the code:&lt;BR /&gt;
[pre]&lt;BR /&gt;
title 'This is the ONLY title statement';&lt;BR /&gt;
[/pre]&lt;BR /&gt;
  &lt;BR /&gt;
with no other TITLE statements in the code, then the single TITLE statement would have been used for every PROC PRINT -- since TITLE statements are GLOBAL, they remain in effect until they are changed. &lt;BR /&gt;
 &lt;BR /&gt;
  So, I'm not sure what you mean by a "global title for all the proc print codes along with each proc print title" -- do you mean some string that would ONLY appear on page 1 of the document that contained the 4 proc prints????  If so, then you could change the title statements as shown below. (Essentially, you would use a TITLE1 and TITLE2 statement for the first PROC PRINT and then just use TITLE1 statements for all the other PROC PRINTS.)&lt;BR /&gt;
&lt;BR /&gt;
Otherwise, if that's not what you mean, there's the possibility that you might use ODS TEXT= to insert some extra text into the report. But I'm not clear on what you really want.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
&lt;BR /&gt;
ods pdf(id=specpdf) file='c:\temp\more_than_one.pdf';&lt;BR /&gt;
                &lt;BR /&gt;
  title1 'The Very First Title';&lt;BR /&gt;
  proc print data=sashelp.class(obs=5);&lt;BR /&gt;
  title2 'One';&lt;BR /&gt;
  run;&lt;BR /&gt;
            &lt;BR /&gt;
  proc print data=sashelp.cars(obs=5);&lt;BR /&gt;
  title1 'Two';&lt;BR /&gt;
  run;&lt;BR /&gt;
                    &lt;BR /&gt;
  proc print data=sashelp.shoes(obs=5);&lt;BR /&gt;
  title1 'Three';&lt;BR /&gt;
  run;&lt;BR /&gt;
      &lt;BR /&gt;
  proc print data=sashelp.prdsale(obs=5);&lt;BR /&gt;
  title1 'Four';&lt;BR /&gt;
  run;&lt;BR /&gt;
ods pdf(id=specpdf) close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 01 Jun 2011 17:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-we-get-all-proc-print-outputs-in-one-PDF-doc-in-SAS-EG/m-p/71431#M8192</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-06-01T17:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can we get all proc print outputs in one PDF doc in SAS/EG?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-we-get-all-proc-print-outputs-in-one-PDF-doc-in-SAS-EG/m-p/71432#M8193</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the information.&lt;BR /&gt;
Yes i mean some string that would ONLY appear on page 1 of the document that contained the 4 proc prints.&lt;BR /&gt;
&lt;BR /&gt;
It works for me...Thanks once again...</description>
      <pubDate>Wed, 01 Jun 2011 18:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-we-get-all-proc-print-outputs-in-one-PDF-doc-in-SAS-EG/m-p/71432#M8193</guid>
      <dc:creator>srisai</dc:creator>
      <dc:date>2011-06-01T18:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can we get all proc print outputs in one PDF doc in SAS/EG?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-we-get-all-proc-print-outputs-in-one-PDF-doc-in-SAS-EG/m-p/71433#M8194</link>
      <description>[pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data one;&lt;BR /&gt;
 title='The Very First Title';&lt;BR /&gt;
run;&lt;BR /&gt;
data two;&lt;BR /&gt;
 title="The Cynthia's title";&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods pdf file='c:\temp\more_than_one.pdf' startpage=no uniform;&lt;BR /&gt;
                &lt;BR /&gt;
proc report data=one nowd noheader style={frame=void};&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=sashelp.class(obs=5);&lt;BR /&gt;
  run;&lt;BR /&gt;
      &lt;BR /&gt;
proc report data=two nowd noheader style={frame=void};&lt;BR /&gt;
run; &lt;BR /&gt;
proc print data=sashelp.shoes(obs=10);&lt;BR /&gt;
  run;&lt;BR /&gt;
                    &lt;BR /&gt;
  &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Thu, 02 Jun 2011 07:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-we-get-all-proc-print-outputs-in-one-PDF-doc-in-SAS-EG/m-p/71433#M8194</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-06-02T07:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can we get all proc print outputs in one PDF doc in SAS/EG?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-we-get-all-proc-print-outputs-in-one-PDF-doc-in-SAS-EG/m-p/71434#M8195</link>
      <description>Or &lt;BR /&gt;
&lt;BR /&gt;
ODS PDF Text='This is text I want to appear at this time, not later in the document';</description>
      <pubDate>Thu, 02 Jun 2011 17:56:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-we-get-all-proc-print-outputs-in-one-PDF-doc-in-SAS-EG/m-p/71434#M8195</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-06-02T17:56:56Z</dc:date>
    </item>
  </channel>
</rss>

