On 13/12/2008, at 2:37 AM, PAPWORTH Paul wrote:
What is the best way to percolate an error back up the stack in a
configuration as follows if I have an error in one of the 3 modules :-
The throw catch technique as described in the recent article by Jon
Paris and others ?
Program A Monitor on a Data Quue
   Program B Called by A
      Module C
      Module D  3 modules called by B
      Module E
First. don't reply to a message when starting a new thread.
Second, set a sensible subject line so your question is useful in the  
archives.
Third, "best" is debatable but for this I would simply send the  
exception to the caller of Program B by using QMHSNDPM with a call  
stack entry of *PGMBDY and a call stack counter of 1 (although in  
fact I'd send to the caller of B's PEP by deriving the PEP name  
because it makes my code more reusable). There should be plenty of  
information on this subject in the archives.
Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         OS/400, i5/OS Technical Specialists
   
http://www.flybynight.com.au/
   Phone: +61 2 6657 8251   Mobile: +61 0411 091 400        /"\
   Fax:   +61 2 6657 8251                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------
 
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.