Date: Thu, 17 Dec 1998 13:39:43 -0500
Reply-To: "Self, Karsten" <Karsten.Self@SCHWAB.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: "Self, Karsten" <Karsten.Self@SCHWAB.COM>
Subject: Re: Conditional processing of a data step
Macro is what I'd use. This is exactly what it was designed for.
%macro maybesrt( doit );
%if %str(&doit) eq %str(true) %then
proc sort /* stuff */;
by /* stuff */;
Macro can be abused horribly, it can also be your friend.
Karsten M. Self (Karsten.Self@schwab.com)
What part of "gestalt" don't you understand?
WARNING: All e-mail sent to or from this address will be received by the
Charles Schwab corporate e-mail system and is subject to archival and
review by someone other than the recipient.
> From: John Uebersax[SMTP:juebersax@QLEX.QUINTILES.COM]
> Reply To: juebersax@QLEX.QUINTILES.COM
> Sent: Thursday, December 17, 1998 7:25 AM
> To: SAS-L@UGA.CC.UGA.EDU
> Subject: Conditional processing of a data step
> Is there a fairly simple way for conditional processing of a DATA step?
> For example, I'd like
> to either sort or not sort a data set, depending upon information supplied
> at program
> execution time (supplied to the program via the &sysparm macro variable).
> Possibly this can be done by making the whole program a macro; that's
> feasible, but seems
> unnecessarily complicated. Any suggestions appreciated.
> John Uebersax
> Statistical Consultant
> (on assignment at Quintiles)