|
Here is one method. I am not at an AS/400, so if anything is too vague, let me
know.
1. Create a nessage queue to use for writer messages.
2. When writers are started, specify the new message queue in the STRPRTWTR
command.
3. Write a program that does a RCVMSG from the new message queue. The program
can
examine the
message data and Message ID to determine what action to take. Make it a
neverending program.
Problem solved
Bob Larkin
Robert J Blackburn wrote:
> Background:
>
> We send many reports to PC printers during our night time batch process and
> more than occasionally we lose connection with them. When you take a retry
> on the msgw the writer ends and must be restarted. After it is restarted,
> everything is fine. I have been testing the RTVCFGSTS to see if it started
> etc. However, if the writer is up and running or has msgw it returns code
> 60 - Active.
>
> Question:
>
> Is there a way to automated way to check if there is a msgw and restart the
> writer?
>
> Thanks in advance,
> Bob
>
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: david@midrange.com
> +---
begin: vcard fn: Bob Larkin n: Larkin;Bob org: <A HREF="HTTP://web.wt.net/~blarkin/">Larkin Computer Consulting</A> adr: <A HREF="http://web.wt.net/~blarkin/">Bob and Diana's Page</A>;;;Houston;TX;<A HREF="http://web.wt.net/~blarkin/">;United States email;internet: blarkin@wt.net title: Systems Consultant x-mozilla-cpt: ;4104 x-mozilla-html: FALSE version: 2.1 end: vcard
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.