× 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: EXCEPT vs. UPDATE (was Re: rpg400-l-digest V1 #241)
  • From: "Dan Bale" <dbale@xxxxxxxxxxx>
  • Date: Fri, 1 Oct 1999 12:21:55 -0400



When I write an app from scratch, my rule is: NEVER modify a database field
unless you intend to update it in the database, and don't modify it until just
before the UPDATE.  This is done by using a subroutine that does nothing but
update the database fields and then does the UPDATE.  This way, I am assured
that I can use UPDATE without updating a field that was not intended to be
updated.

- Dan Bale

From: Joel Fritz <JFritz@sharperimage.com>
Subject: RE: rpg400-l-digest V1 #241

<SNIP>
Point 2:  I didn't always do much exception output to files.  For a batch
job that runs several hours, exception output can give you a performance
boost that makes a difference provided you don't have the option of unkeyed
sequential I/O.  For programs that run in a few minutes, or interactive
programs I rarely use it.
<SNIP>
> From: Pete [mailto:prmoore@mail.globalnet.co.uk]
<SNIP>
> > 2.  Exception output has some legitimate uses.  If you're
> updating a few
> > fields in a large record format in a batch process on a
> large file, you can
> > get a performance boost by using exception output.
> Obviously the best
> > performance comes from using sequential input and output to
> a new file that
> > replaces the original (using write), but you don't always
> have that luxury.
> I'm not persuaded by most machine-efficiency arguments.
> Anyway are you saying that the compiler generates less code
> via O-specs
> than field moves?
<SNIP>





+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| 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.