Just as I'd hoped!
Thank you Barbara!
Steve Needles
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Barbara Morris
Sent: Monday, April 04, 2016 11:02 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Execution hierarchy of bound module vs bound SVC pgms.
On 4/4/2016 1:34 PM, Needles,Stephen J wrote:
Here is the scenario...
Existing code has a program (bound *MODULE) that is the registered Error Handler. Other bound *MODULES are also bound to the same Error Handler.
New Condition Handler that attaches as a Bind service program. It is registered in place of the original *MODULE in the caller.
Because the other bound *MODULES use the original, both Condition Handlers need to be included in the CRTPGM statement.
Provided that each module registers its particular flavor of condition handler, is there any hierarchical processing that might trip up?
Is there any particular harm in including both condition handlers in the *PGM?
Steve, assuming the new condition handler has a different name from the original one, there should be no problem. When procedure H1 is registered as condition handler for procedure P1, that connection is specific to H1 and P1. If there is some other procedure H2 that is registered as a condition handler to some other procedure P2, that relationship is irrelevant to P1 and H1.
--
Barbara
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
________________________________
This communication, including attachments, is confidential, may be subject to legal privileges, and is intended for the sole use of the addressee. Any use, duplication, disclosure or dissemination of this communication, other than by the addressee, is prohibited. If you have received this communication in error, please notify the sender immediately and delete or destroy this communication and all copies.
TRVDiscDefault::1201
As an Amazon Associate we earn from qualifying purchases.