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

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
Barite | Level 11

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
Barite | Level 11

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
Barite | Level 11

Yes, Thank you. It works great!

HHC

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 6 replies
  • 2689 views
  • 0 likes
  • 3 in conversation