BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
hhchenfx
Rhodochrosite | Level 12

Hi Everyone,

To save running time, is there anyway to tell SAS not to print anything on the result/output page.

the plots=None helps but still many tables are printed.

Thank you,

HHCFX

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

Try this one :

 

ods select none;
ods output  ParameterEstimates=my_reg_output ;
proc reg data=sashelp.class;
model weight=height;
quit;
ods select all;

View solution in original post

6 REPLIES 6
ballardw
Super User

NOPRINT on the output statement should suppress other output. I would hope you are creating output data sets using the OUTEST or similar options or the OUTPUT statement. If you are using ODS OUTPUT to generate output sets you would want to set ODS SELECT to only create the ones you want.

hhchenfx
Rhodochrosite | Level 12

I need coefficient but the Noprint seems to suppress the creation of the output file.

What should I change?

Thanks.

 

	ods output ParameterEstimates=my_reg_output ;
		proc reg data=all1 noprint	plots=none;
		model Y= x;
		run;
Ksharp
Super User
ods select none;


ods output ParameterEstimates=my_reg_output ;
		proc reg data=all1 noprint	plots=none;
		model Y= x;
		quit;

ods select all;
hhchenfx
Rhodochrosite | Level 12

Thanks but still no table created.

 

"WARNING: ODS Graphics are not produced when you specify the NOPRINT option in the PROC REG
statement.
WARNING: Output 'ParameterEstimates' was not created. Make sure that the output object name,
label, or path is spelled correctly. Also, verify that the appropriate procedure
options are used to produce the requested output object. For example, verify that
the NOPRINT option is not used."

 

Ksharp
Super User

Try this one :

 

ods select none;
ods output  ParameterEstimates=my_reg_output ;
proc reg data=sashelp.class;
model weight=height;
quit;
ods select all;
hhchenfx
Rhodochrosite | Level 12

Yes, Thank you. It works great!

HHC

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 3967 views
  • 0 likes
  • 3 in conversation