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 (July 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
=========================================================================
Date:         Fri, 19 Jul 2002 13:06:09 +0200
Reply-To:     Ace <b.rogers@VIRGIN.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Ace <b.rogers@VIRGIN.NET>
Subject:      Re: Else else else
Content-Type: text/plain; charset=us-ascii

On Fri, 19 Jul 2002 06:43:06 -0400, "Richard A. DeVenezia" <radevenz@ix.netcom.com> wrote:

>"Ace" <b.rogers@virgin.net> wrote in message >news:6phfjuod92409qeijotrqhj3g00me5ucv5@4ax.com... >> Found a wierd 'undocumented feature' in SAS - reapeating the word >> 'else' dont't generate any error or even warning statements. >> >> data; >> if 1 = 2 then x = 33; >> else >> else >> else >> else >> else >> else x=44 ; >> put x ; >> run; >> >> runs absolutely fine in V6 & 8, windows & unix. This can't be >> intentional, can it?

>Very interesting! >The same behaviour occurs in macro.

>Repeated then's are also accepted by the language parser.

Hmm, they're not accepted in data step. Neither of them is allwed in SCL either.

>Maybe one of the developers is a stutterer ? :)

<G> --


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