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 (August 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 19 Aug 2002 10:06:42 -0600
Reply-To:     Kenneth Moody <KennethMoody@FIRSTHEALTH.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Kenneth Moody <KennethMoody@FIRSTHEALTH.COM>
Subject:      Re: conditional execution
Comments: To: ckalisetty@AOL.COM
Content-Type: text/plain; charset=us-ascii

Sekhar, You've already received good responses from several on the list.

Here's one method that you might use:

%global condstatus = CANCEL; * initialize macro variable - first step not yet successful; data firststep; <... statements in firststep...> call symput('condstatus', ' '); * set macro variable to blank if first step is successful; run; data secondstep; <...statements in second step...> run &condstatus; * if first step was not successful, the second step will be canceled;

Ken Moody First Health, Metrics Department Voice: 916-374-3924 EMail: KennethMoody@firsthealth.com

>>> CKalisetty <ckalisetty@AOL.COM> 08/19/02 06:39AM >>> Hi

Is there any way we can conditionally execute data steps? I want to execute the second data step only if the first data step is successful otherwise I want to do something else? Is there any system parameter for this? Any help is really appreciated Thanks Sekhar


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