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



In deference to Chuck's recent complaint I have attempted to modify the header of this to reflect the thread better. Hard to do properly from digest mode but ...

On 2013-01-24, at 17:00:33, "James H. H. Lampert" <jamesl@xxxxxxxxxxxxxxxxx> wrote:


On 1/24/13 1:38 PM, Horn, Jim wrote:
In an rpg and or cl can you
override a print file to something
open the spool or ?
call several programs adding to the spool
close the spool?

I know you can do it with calls to C "puts()" running in a batch job
(which maps STDIO to a spool file). If you want several programs writing
to the same spool file, they all have to be running in the same
activation group.

And for all I know, running all the programs in the same activation
group may be the key to doing it with RPG I/O, as well. Or not.

For what it's worth.

--
JHHL

I wrote an article to IT Jungle that demonstrates how this can be done by passing the print file as a parameter. It works very well and is very simple to do. If the OP is not yet on V6 or later then the article also links to an earlier example from Ted Holt that demonstrates the override method.

The article is here: http://www.itjungle.com/fhg/fhg032112-story01.html


Jon Paris

www.partner400.com
www.SystemiDeveloper.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.