|
Bill, >Are you a programmer or just make up excuses to not do things? I'll be diplomatic and just point out my reply was to this proposed method: >Wow ... why not just take the total number of records to be processed and >divide it by the number of records printed to a page? Hopefully by now you've thought about it and realized the fallacy in that proposal. If not, I strongly recommend you read the thread others have pointed to in the archives. >Your program is going to print a detail and total line for a reason, when >that reason happens ADD 2 TO THE COUNTER. > >Duh... Are you suggesting a two-pass approach to determine "when that reason happens" or an algorithm (Select count(*) ...???) in *INZSR to calculate how many times the "reason" happens? Either way, we've already moved away from your original proposal, which is exactly the point -- the original proposal doesn't always work. If you read the referenced thread, you'll see it is not as simple as your second proposal either. Shall I continue to beat this dead horse? Neigh, neigh, I say. Doug +--- | 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 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.