Programming the statistical procedures from SAS

Not print in 'Proc Genmod' part

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 118
Accepted Solution

Not print in 'Proc Genmod' part

Hi, 

 

I am using SAS EG, and after the 'Proc Genmod' part (Poisson Regression) 

result is printed out in the output tab 'Results'.  Can I not print the result? I searched and found that 'no print' is not available for this procedure. 

 

My code: 

 

		proc genmod data=Table_A;
			class C4 C5;
			by C1 C2 C3;
			model C6 = C4 C5/ dist=poisson
			link=log scale=pearson;
			output out=Table_B p=Opt;
		run;
		ods exclude all; 

Thanks! 


Accepted Solutions
Solution
‎08-02-2017 01:17 PM
Super User
Posts: 19,772

Re: Not print in 'Proc Genmod' part

ODS statements go before or in the PROC. If it's after it affects the next procedure.

View solution in original post


All Replies
Super User
Posts: 19,772

Re: Not print in 'Proc Genmod' part

http://blogs.sas.com/content/iml/2015/05/26/suppress-ods.html

 

The instructions above show how to supress the output.

Regular Contributor
Posts: 228

Re: Not print in 'Proc Genmod' part

Try using ods as stated in the last paragraph here

 

 

Frequent Contributor
Posts: 118

Re: Not print in 'Proc Genmod' part

Thanks! It works. 

Solution
‎08-02-2017 01:17 PM
Super User
Posts: 19,772

Re: Not print in 'Proc Genmod' part

ODS statements go before or in the PROC. If it's after it affects the next procedure.

☑ This topic is solved.

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

Discussion stats
  • 4 replies
  • 168 views
  • 1 like
  • 3 in conversation