Date: Thu, 12 Apr 2012 08:54:40 -0600
Reply-To: Fried Egg <friedegg2012@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Fried Egg <friedegg2012@GMAIL.COM>
Subject: Re: Macro Function Sandwich (was: RE: macro unquoting with SCL
open() (long))
In-Reply-To: <CAEZCystnLPc_bL5tN-_KWjT-ibOeennuNdRjS7LyHdXz-w1M0Q@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
This is a great concept. I have used some similar techniques but never
went the extra layer for the outer macro, I like it!
On Thu, Apr 12, 2012 at 8:19 AM, Data _null_; <iebupdte@gmail.com> wrote:
> "appelation" I had to look that up.
>
> Great paper I've been reading at it since I learned the papers had
> become available online.
>
> On 4/12/12, Mike Rhoads <RHOADSM1@westat.com> wrote:
> > OK, I couldn't resist. I'm doing a paper at SAS Global Forum on the whole
> > macro-calls-userwrittenfunction-calls-inner-macro idea. Mike Raithel
> > graciously coined the term "macro function sandwich" to describe the
> > technique. You need to beware, because using it does uncover a couple of
> > latent SAS system problems. (I'm told all will be well in the next
> > maintenance release of 9.3.)
> >
> > For those attending the conference, the talk is at 4:00 Monday afternoon.
> > The paper is available at:
> > http://support.sas.com/resources/papers/proceedings12/004-2012.pdf
> >
> > Also note that a posting by Data _null_ was my inspiration for the whole
> > thing ...
> >
> > Mike Rhoads
> > RhoadsM1@Westat.com
> >
> >
> > -----Original Message-----
> > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
> Data
> > _null_;
> > Sent: Thursday, April 12, 2012 7:20 AM
> > To: SAS-L@LISTSERV.UGA.EDU
> > Subject: Re: macro unquoting with SCL open() (long)
> >
> > ...
> >
> > I wonder if you could write an FCMP function to use RUN_MACRO to set the
> > option and if it would set the option for the entire session.
> >
> > %macro nobs(data);
> > /*macro function in autocall library to return # obs in a dataset*/
> %let rc
> > = %sysfunc(%FCMPfunctionToCallRun_MACRO to set MERROR=0));
> >
> > ...
> >
>
|