Date: Thu, 10 Sep 2009 15:04:13 -0400
Reply-To: Ya Huang <ya.huang@AMYLIN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Ya Huang <ya.huang@AMYLIN.COM>
Subject: Re: Help to print the output from the IML step only?
This would work:
ods listing close;
PROC glm ;
...
Run;
ods listing;
Proc IML;
...
On Thu, 10 Sep 2009 11:20:10 -0700, amit <amitumrao@GMAIL.COM> wrote:
>In the SAS steps given below I need that only the output generated in
>the IML steps should be printed in the output window. The output
>generated from the GLM step should not be printed.
>
>DATA plantheight;
> Input Tree Rep Height;
> Cards;
>1 1 144.44
>2 1 113.50
>3 1 60.88
>4 1 163.44
>1 2 145.11
>2 2 118.61
>3 2 90.94
>1 3 104.00
>2 3 118.61
>3 3 80.33
>1 4 105.44
>2 4 123.00
>3 4 92.00
>4 4 153.11
> ;
>PROC glm ;
>Class Rep Tree;
>Model Height =Rep Tree ;
>ods output overallanova = total_ss;
>ods output ModelANOVA= anova_typeIII;
>Run;
>
>proc iml;
>use total_ss;
>read all var{df ss ms FValue ProbF} into x;
>x1=char(x[2:3,]);
>use anova_typeIII;
>read all var{df ss ms FValue ProbF} into xx;
>xx1=char(xx[3:4,]);
>anova=compress(xx1//x1);
>rnames={'Replication' 'Treatment' 'Error' 'Corrected Total'};
>cnames={ 'DF' 'SS' 'MSS' 'F Value' 'Pr > F'};
>print anova[rowname=rnames colname=cnames];
>quit;
>
>
>
>thanks and regards,
>amit
|