Programming the statistical procedures from SAS

PROC TTEST NOPRINT

Accepted Solution Solved
Reply
Contributor L_L
Contributor
Posts: 56
Accepted Solution

PROC TTEST NOPRINT

Dear all

I think Noprint option isn’t allowed with Proc Ttest. How can I use Proc
Ttest without having the output printed?

Thanks in advance for any help.


Accepted Solutions
Solution
‎04-02-2013 10:02 AM
SAS Super FREQ
Posts: 3,537

Re: PROC TTEST NOPRINT

ods exclude all;

proc ttest...

run;

ods exclude none;

View solution in original post


All Replies
Trusted Advisor
Posts: 1,659

Re: PROC TTEST NOPRINT

ods listing select none;

proc ttest ...

...

run;

ods listing select all;

Contributor L_L
Contributor
Posts: 56

Re: PROC TTEST NOPRINT

The proc ttest is inside a Macro.

If I use:

listing select none;

%ttest (DB=ds, STRAT=gender, VAR=age);

The code ends with the error message:

The LISTING destination is not active; no select/exclude lists are available.

maybe because the sas code contain an ods select (who I need to have pvalue to print):

proc ttest data=..;

class ..;

var ...;

ods output equality=equalvar

                  ttest=test;

run;

Thx 



Trusted Advisor
Posts: 1,659

Re: PROC TTEST NOPRINT

I don't think this has anything to do with macros. That's not the issue.

Try Rick Wicklin's suggestion.

What does this mean "maybe because the sas code contain an ods select (who I need to have pvalue to print):"? If you're going to make statements like this, you need to show us your code.

Solution
‎04-02-2013 10:02 AM
SAS Super FREQ
Posts: 3,537

Re: PROC TTEST NOPRINT

ods exclude all;

proc ttest...

run;

ods exclude none;

Contributor L_L
Contributor
Posts: 56

Re: PROC TTEST NOPRINT

Yes!

Thank you

🔒 This topic is solved and locked.

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

Discussion stats
  • 5 replies
  • 4139 views
  • 0 likes
  • 3 in conversation