The SAS Output Delivery System and reporting techniques

How to hide (procedure) titles in SAS ODS PDF securely ?

Accepted Solution Solved
Reply
Contributor
Posts: 57
Accepted Solution

How to hide (procedure) titles in SAS ODS PDF securely ?

I faced a strange 'problem'. During multiple file processing (many thanks to helpful paper

by Kevin McGowan and Matt Reich) SAS reads 8 '.txt' files and produces 8 '.pdf' files

to the same directory.

Interestingly, the following code

ODS NOPROCTITLE;             <<<

%macro myMacro;

   ods pdf file = "...";

    ...

   ods pdf close;

%mend myMacro;

%myMacro

produces the first '.pdf' file with top centrally aligned titel 'The SAS System';

the following files contain no titles at all.

The second code

  %macro myMacro;

   ods pdf file = "...";

    ...

   ods pdf close;

   ODS NOPROCTITLE;    <<<

%mend myMacro;

%myMacro

produces the first '.pdf' file with top centrally aligned titll 'The SAS System' and

procedure titles; again the following files contain no titles at all.

In the SAS Help it is said that not all PROCs use PROCTITLE.

How to hide 'The SAS System' title with the former code ?

How to be confident with suppressing all titles created by different PROCs ?

What are the alternatives to 'TITLE;' statements ?

Thank you.


Accepted Solutions
Solution
‎08-10-2013 01:46 PM
SAS Super FREQ
Posts: 8,721

Re: How to hide (procedure) titles in SAS ODS PDF securely ?

Hi:

  I would recommend that you read the SAS documentation. "The SAS System" is NOT a procedure title. It is a SAS System Title the "null" title statement:

TITLE; is the ONLY way to reset or get rid of the default "The SAS System".

  ODS NOPROCTITLE or ODS NOPTITLE, only gets rid of the procedure specific titles: The MEANS Procedure, The FREQ Procedure, The UNIVARIATE Procedure, etc, etc. This statement has NO impact on system titles or footnotes.

  So there is no UNIVERSAL turn off everything option. You control TITLES with the TITLE statement, FOOTNOTES with the FOOTNOTE statement and Procedure titles with the ODS NOPTITLE statement.

cynthia

View solution in original post


All Replies
Solution
‎08-10-2013 01:46 PM
SAS Super FREQ
Posts: 8,721

Re: How to hide (procedure) titles in SAS ODS PDF securely ?

Hi:

  I would recommend that you read the SAS documentation. "The SAS System" is NOT a procedure title. It is a SAS System Title the "null" title statement:

TITLE; is the ONLY way to reset or get rid of the default "The SAS System".

  ODS NOPROCTITLE or ODS NOPTITLE, only gets rid of the procedure specific titles: The MEANS Procedure, The FREQ Procedure, The UNIVARIATE Procedure, etc, etc. This statement has NO impact on system titles or footnotes.

  So there is no UNIVERSAL turn off everything option. You control TITLES with the TITLE statement, FOOTNOTES with the FOOTNOTE statement and Procedure titles with the ODS NOPTITLE statement.

cynthia

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 2666 views
  • 0 likes
  • 2 in conversation