BookmarkSubscribeRSS Feed
GVeers
Calcite | Level 5
Hello all,

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.

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?

I thank you for your time.
3 REPLIES 3
Cynthia_sas
SAS Super FREQ
Hi:
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):
[pre]
ods noptitle;
** procedure 1;
run;

ods ptitle;
** procedure 2;
run;

ods noptitle;
** procedure 3;
run;

[/pre]

cynthia
GVeers
Calcite | Level 5
Cynthia, I do appreciate your response. I figured you would step in and offer some advice, you seem to be very helpful around here.

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.

Thank you again!
Cynthia_sas
SAS Super FREQ
Hi:
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.

You might try this:
[pre]
ods noptitle; /* turn off ALL procedure titles */

ods html file='mytxt.html' style=sasweb;
ods html text='Proc Reg Info Only Once';
Proc Reg;
quit;

ods html text='Proc Corr Only Once';
Proc Corr;
run;
ods html close;

[/pre]

For some destinations (HTML, RTF, PDF), you can suppress the procedure title and then use ODS TEXT statements to put
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=.

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 2219 views
  • 0 likes
  • 2 in conversation