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 (November 2001, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 29 Nov 2001 16:57:13 +0000
Reply-To:   John Whittington <John.W@MEDISCIENCE.CO.UK>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   John Whittington <John.W@MEDISCIENCE.CO.UK>
Subject:   Re: position of DELETE statement within a do - end block
Comments:   To: Karl Ruertenberg <karl________@HOTMAIL.COM>
In-Reply-To:   <E169UFm-0000Qz-00@relay1.netnames.net>
Content-Type:   text/plain; charset="us-ascii"; format=flowed

At 16:31 29/11/01 +0000, Karl Ruertenberg wrote (in part):

>i am puzzled at the fact that it seems within a do - end block, PUT >statement (or maybe whatever statements) after a DELETE statement will not >be executed. just wondering whether there is any rules in SAS concerning >the position of DELETE statement within a do - end block. >... an example:

Karl, I don't thing that the DO...END block is relevant. As far as I am aware, immediately a DELETE statement is executed (no matter WHERE it appears in code), execution moves to the next iteration of the DATA step ('via' an incrementing of the iteration counter _n_). Hence, any code (whether PUT or anything else) which appears after (in terms of execution sequence) an executed DELETE statement will NOT be executed, regardless of whether that DELETE statement is 'in the open' or within a DO..END or other construct.

That's how I see it, anyway.

Kind Regards

John

---------------------------------------------------------------- Dr John Whittington, Voice: +44 (0) 1296 730225 Mediscience Services Fax: +44 (0) 1296 738893 Twyford Manor, Twyford, E-mail: John.W@mediscience.co.uk Buckingham MK18 4EL, UK mediscience@compuserve.com ----------------------------------------------------------------


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