<?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: Print only one title in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Print-only-one-title/m-p/35968#M8962</link>
    <description>Hi:&lt;BR /&gt;
  SAS is PROCEDURE oriented. Not PAGE oriented. So the SAS title will appear on every page produced by a procedure. As needed, the SAS procedure title may or may not appear on every page, too. If you used ODS DOCUMENT/PROC DOCUMENT, it is possible to remove the titles that go with particular page breaks in the ODS DOCUMENT-- but this is not going to help you in the PROC PRINTTO situation.&lt;BR /&gt;
&lt;BR /&gt;
   You might try this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods noptitle;  /* turn off ALL procedure titles */&lt;BR /&gt;
                                        &lt;BR /&gt;
ods html file='mytxt.html' style=sasweb;&lt;BR /&gt;
  ods html text='Proc Reg Info Only Once';&lt;BR /&gt;
  Proc Reg;&lt;BR /&gt;
  quit;&lt;BR /&gt;
                                &lt;BR /&gt;
  ods html text='Proc Corr Only Once';&lt;BR /&gt;
  Proc Corr;&lt;BR /&gt;
  run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
                                    &lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                                                               &lt;BR /&gt;
For some destinations (HTML, RTF, PDF), you can suppress the procedure title and then use ODS TEXT statements to put &lt;BR /&gt;
additional text before the procedure. But, since PROC PRINTTO is the equivalent of sending LISTING output to an ASCII text file, this technique would not work for you. You'd have to move over into the ODS world to use ODS TEXT=.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
    <pubDate>Wed, 06 Aug 2008 19:52:14 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-08-06T19:52:14Z</dc:date>
    <item>
      <title>Print only one title</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Print-only-one-title/m-p/35965#M8959</link>
      <description>Hello all,&lt;BR /&gt;
&lt;BR /&gt;
I'm running a few REG and CORR procedures and using PRINTTO to send the results to a .lst file.  As you know, for each call of REG and CORR it prints a header saying "The Reg Procedure" and associated information.&lt;BR /&gt;
&lt;BR /&gt;
I like this header/title, but I'd like to stop it from printing a second time when there is a page break.  How can I do this?&lt;BR /&gt;
&lt;BR /&gt;
I thank you for your time.</description>
      <pubDate>Mon, 04 Aug 2008 14:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Print-only-one-title/m-p/35965#M8959</guid>
      <dc:creator>GVeers</dc:creator>
      <dc:date>2008-08-04T14:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Print only one title</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Print-only-one-title/m-p/35966#M8960</link>
      <description>Hi:&lt;BR /&gt;
  The ODS NOPTITLE statement is a global statement that will turn the procedure title off. However, it does not work on a page by page basis. It works either on a session by session basis (turn it off one time for the whole session) or on a procedure by procedure basis (turn it on and off before each procedure):&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods noptitle;&lt;BR /&gt;
** procedure 1;&lt;BR /&gt;
run;&lt;BR /&gt;
     &lt;BR /&gt;
ods ptitle;&lt;BR /&gt;
** procedure 2;&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
ods noptitle;&lt;BR /&gt;
** procedure 3;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 06 Aug 2008 12:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Print-only-one-title/m-p/35966#M8960</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-08-06T12:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Print only one title</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Print-only-one-title/m-p/35967#M8961</link>
      <description>Cynthia, I do appreciate your response.  I figured you would step in and offer some advice, you seem to be very helpful around here.&lt;BR /&gt;
&lt;BR /&gt;
It sounds like SAS can't supress titles printing a second time.  I am pretty surprised at this, it sounds like a logical feature to have.  I guess I'll continue to edit my output accordingly.&lt;BR /&gt;
&lt;BR /&gt;
Thank you again!</description>
      <pubDate>Wed, 06 Aug 2008 18:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Print-only-one-title/m-p/35967#M8961</guid>
      <dc:creator>GVeers</dc:creator>
      <dc:date>2008-08-06T18:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Print only one title</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Print-only-one-title/m-p/35968#M8962</link>
      <description>Hi:&lt;BR /&gt;
  SAS is PROCEDURE oriented. Not PAGE oriented. So the SAS title will appear on every page produced by a procedure. As needed, the SAS procedure title may or may not appear on every page, too. If you used ODS DOCUMENT/PROC DOCUMENT, it is possible to remove the titles that go with particular page breaks in the ODS DOCUMENT-- but this is not going to help you in the PROC PRINTTO situation.&lt;BR /&gt;
&lt;BR /&gt;
   You might try this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods noptitle;  /* turn off ALL procedure titles */&lt;BR /&gt;
                                        &lt;BR /&gt;
ods html file='mytxt.html' style=sasweb;&lt;BR /&gt;
  ods html text='Proc Reg Info Only Once';&lt;BR /&gt;
  Proc Reg;&lt;BR /&gt;
  quit;&lt;BR /&gt;
                                &lt;BR /&gt;
  ods html text='Proc Corr Only Once';&lt;BR /&gt;
  Proc Corr;&lt;BR /&gt;
  run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
                                    &lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                                                               &lt;BR /&gt;
For some destinations (HTML, RTF, PDF), you can suppress the procedure title and then use ODS TEXT statements to put &lt;BR /&gt;
additional text before the procedure. But, since PROC PRINTTO is the equivalent of sending LISTING output to an ASCII text file, this technique would not work for you. You'd have to move over into the ODS world to use ODS TEXT=.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 06 Aug 2008 19:52:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Print-only-one-title/m-p/35968#M8962</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-08-06T19:52:14Z</dc:date>
    </item>
  </channel>
</rss>

