|
This macro will work for any PROC. GLM was just for illustration.
Rahul
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
David L Cassell
Sent: Friday, September 09, 2005 11:12 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: Question on creating loops
Rahuldev.Sharma@SYMPHONYSV.COM helpfully replied:
>%MACRO modelling(Y);
>PROC GLM;
> CLASS ..........;
> MODEL &Y=3DPRODUCT_CODE TIME PRODUCT_CODE*TIME ;
>RUN;
>%MEND modelling;
>
>%modelling(Bright );
>%modelling(DC );
>%modelling(DRY );
Which would work.
But it isn't necessary, if the proc is GLM. PROC GLM will let you do
this:
PROC GLM;
CLASS ..........;
MODEL bright dry dc fl = PRODUCT_CODE TIME PRODUCT_CODE*TIME ;
RUN;
Some procs don't accept this syntax, so it matters which proc the
original poster wants to use.
David
--
David L. Cassell
mathematical statistician
Design Pathways
3115 NW Norwood Pl.
Corvallis OR 97330
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from
McAfee(r) Security.
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
|