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



You are looking for OvrPrtF, but with a twist..... Open the file in a
"controlling" rpg program and call the other programs from the controlling
programs.

The file will be opened once (in the controlling program).... The
controlling program doesn't even need to output to the file. It just has
to be mentioned in the F-Specs. Each of the other programs will output to
the same file.

One other interesting twist.... you have to add some controls for the page
counter. If the first reporting program writes 10 pages, you will want
the second reporting program to print the header with "page 11".
Unfortunately, unless you pass a starting value, the page counter will
start at 1 again. This may or may not be a problem for you.


I had a very long program that printed a report in 11 different segments.
Each segment was unique. Occasionally, the user wanted the whole report,
but often only needed a couple segments. The original program was broken
into 11 different reporting programs. A controlling program opens the
spool file and calls the specific segments based on passed parms. It works
cleanly and makes maintenance much easier. Each segment is easily
maintained and modified without causing issues to the rest.

Hope this helps.

Paul Thieme



message: 1
date: Wed, 24 Sep 2008 10:01:29 -0700
from: "Kesterson, Randy" <RPKesterson@xxxxxxxxxxxxxxxxxxx>
subject: Sharing a Print File

Is there a way to run two RPG report programs, both outputting to the
same Print File name and have them share the open of that print file so
that both reports end up in one spool file?



________________________________________________________________________
______________________
Randy Kesterson, Information Services

Market Transport Services - a UTi Worldwide Company| 110 N Marine Drive
| Portland, OR 97217 | USA
rpkesterson@xxxxxxxxxxxxxxxxxxx <mailto:rpkesterson@xxxxxxxxxxxxxxxxxxx>
| D +1 503.978.4353 | O +1 503.283.2405 x353 | F +1 503.978.4392







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.