× 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: page n of x
  • From: Mark Walter <mwalter@xxxxxxxxxx>
  • Date: Wed, 6 Sep 2000 15:42:17 -0400
  • Organization: Hanover Wire Cloth

How about printing the report once, getting the printer file description 
returning the number of pages, and then printing the report again passing 
the total pages to the processing program or something like that. Seems 
allot easier than trying to calculate the lines. Especially if there are 
multiple control breaks. Or just Print *** E N D   O F   R E P O R T *** 
after the total lines.

-----Original Message-----
From:   jpcarr@TREDEGAR.COM [SMTP:jpcarr@TREDEGAR.COM]
Sent:   Wednesday, September 06, 2000 8:04 AM
To:     RPG400-L@midrange.com
Subject:        RE: page n of x


Martin

I didn't mean to be trite.  In 20 years I have been asked that "Lots" of
times.    On the surface, it would seem to be a valid request.    As you
have seen with the with the responses,  None of which are error free.
Like "Divide the number of records .........  Well how many total lines do
you space or skip for?  New page for each dept/division/company??  ..
Bottom line is "It don't work" .

This type of programming request falls under what my father used to call
"Spending dollars to pick up pennies"

That's all.    No disrespect intended.

John
------------------------------
John Carr said:

> The simple answer for a ridiculous business request.

Why do you think wanting to know the total number of pages there are in
a report is ridiculous?  Sounds quite reasonable to me.  Quite useful
for anyone taking it off the printer too, I should think.

Cheers,

Martin.


+---
| 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
+---

+---
| 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.