Date: Tue, 13 Mar 2007 18:23:04 -0800
Reply-To: David L Cassell <davidlcassell@MSN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: David L Cassell <davidlcassell@MSN.COM>
Subject: Re: intro to sas macros
Content-Type: text/plain; format=flowed
> Where should I look if i need a good introduction to this subject (sas
>macros)? I am tired of repetitive code.
I'm going to agree with the wise authors who have already talked to you.
It often seems that macros are the solution, but all too often there's a
way. As an example, I have a SGF paper in the stat/design section which is
nothing but better ways to code standard stat and simulation problems,
instead of the usuall big icky macros that I see.
Like Dianne, I learned SAS so long ago that this was not as big an issue.
Of course, back then I also had to ride my stegosaurus to get to classes.
I would recommend that you put forth an example or two of the repetitive
stuff you would like to avoid. Recognizing that you have a problem is
the first step, so good work. But SAS is a very rich language. It has a
things which might be better than a macro, in any given theoretical
Or perhaps you have a case where a macro would really be best. I can't tell
from way over here.
You might also go to the Sacramento Vallet SAS Users Group website
and read my paper "The 7 Habits of Highly Effective SAS-ers". You may find
some tips which might help you solve your problem, or at least give you some
pointers toward other ways to write SAS code.
So.. what specific example did you have in mind?
David L. Cassell
3115 NW Norwood Pl.
Corvallis OR 97330
Rates near 39yr lows! $430K Loan for $1,399/mo - Paying Too Much? Calculate