× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Named indicators (was DOW vs DOU)
  • From: CVWD@xxxxxxx
  • Date: Wed, 28 May 1997 11:39:22 -0400 (EDT)

In a message dated 97-05-27 19:48:53 EDT, you write:

>  We do not permit an indicator to be referenced beyond the line of sight in
which 
>  the indicator is set on or off.

>  Of course this technique requires you to use primed read loops.

Hmmmm.  One of the reasons I prefer:

setll
dou    30
reade         30
if   not 30
process
endif
enddo

is just what you said.  The indicator is referenced near where it is set.
 Unlike

setll       
reade   30
dow   not 30
process
reade 30
enddo

where the second read might be 10 pages away.

The other reasons I prefer it are: only one read, proper ITER behavior, and
it conforms to the way all other result indicator handling is done (ie an IF
immediately after the indicator is set).

On another subject - I don't usually find it much more maintainable when
programmers move result indicators to fields and then use the fields.  As far
as I am concerned, it's just another variable to deal with and track,
additional complexity without additional functionality.  When we are allowed
to use named indicators, when a chain to the master sets
No_Master_Record_Found_For_This_Account_Number or Master_File_I/O_Error
 directly, THEN I will get excited about using them.

Just my $.02 - Lance
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the Midrange System Mailing List!  To submit a new message,   *
* send your mail to "MIDRANGE-L@midrange.com".  To unsubscribe from     *
* this list send email to MAJORDOMO@midrange.com and specify            *
* 'unsubscribe MIDRANGE-L' in the body of your message.  Questions      *
* should be directed to the list owner / operator: david@midrange.com   *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.