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.
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
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
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.