LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2005, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 9 Sep 2005 11:46:33 +0530
Reply-To:   Rahuldev Sharma <Rahuldev.Sharma@SYMPHONYSV.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Rahuldev Sharma <Rahuldev.Sharma@SYMPHONYSV.COM>
Subject:   Re: Question on creating loops
Comments:   To: David L Cassell <davidlcassell@MSN.COM>
Content-Type:   text/plain; charset="us-ascii"

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


Back to: Top of message | Previous page | Main SAS-L page