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 2001, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 10 Aug 2001 16:22:05 -0700
Reply-To:     "Terjeson, Mark" <TerjeMW@DSHS.WA.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Terjeson, Mark" <TerjeMW@DSHS.WA.GOV>
Subject:      Re: Suggestion: Language improvement
Content-Type: text/plain; charset=us-ascii

I agree with all of you that a nifty enhancement it would be. And like Harry mentioned, we currently have comments. My favorite is the use of levels of indentation to assist me with our current {limitation? nah, just a lack of a goodie}. Although I could have used the error checking notation a couple times......... :o)

example (of indentation):

data foo; do i = 1 to 10; put 'hello'; do j = 1 to 5; put 'Here we go loop-tee-loop...'; k = i * j; put _all_; end; put 'goodbye'; end; run;

Mark Terjeson Washington State Department of Social and Health Services Division of Research and Data Analysis (RDA)

-----Original Message----- From: Pete Lund [mailto:pete.lund@NWCSR.COM] Sent: Friday, August 10, 2001 1:31 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Suggestion: Language improvement

I know Jack's intent is for some warning as to mismatched blocks, whatever type they may be. There is a baby step toward this end in V8 - at least one that allows you to match do...end statements. In the Enhanced Editor, if you place the cursor anywhere inside a do...end block and hit alt-] (or alt-[) the cursor will toggle from the "do" to the "end". It's quite helpful with multiple nested loops to track what goes with what. Doesn't quite do what Jack wants, but at least it's a step in the right direction.

---------------------------------------------------------------------------- --- Pete Lund Northwest Crime and Social Research, Inc. 313-D Fifth Ave SE Olympia, WA 98501 (360) 528-8970 - voice (360) 280-4892 - cell (360) 570-7533 - fax ---------------------------------------------------------------------------- ---

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU]On Behalf Of Jack Hamilton Sent: Friday, August 10, 2001 10:16 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Suggestion: Language improvement

It would be helpful to allow a marker of some kind on the END statement to indicate what the END is closing. For example:

select (a); when (1) /* do something */' /* More stuff */ end select;

In the more general case, you might allow

label: do i = 1 to 12; * Stuff; end label;

This would make it easier to follow nested loops, and would allow the compiler to detect some coding errors.

-- Development Manager, Technical Group METRICS Department, First Health West Sacramento, California USA

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