|
CEETREC sounds good, but how can I issue it if the job is waiting for the screen input? The only technique I know would be to use a break message handling program, but since system screen input is *DFTACTGRP not *CALLER, even if I create the break message handler as part of the activation group I'm trying to end, the nearest control boundary algorithm would be not let me do it: the handler would start below *DFTACTGRP programs in the stack. Sending an escape mesage is a nice idea too, but is it going to percolate al the way up through the *DEFTACTGRP screen input layer? I'll give it a try. Lo -----Original Message----- From: Thomas Raddatz To: MI Programming on the AS400 / iSeries Sent: 26.03.03 7:59 Subject: [MI400] Re: reclaim activation group with programs active Check the CEETREC API. It should do the trick. "The Normal End (CEETREC) API is used to do a normal ending of the activation group containing the nearest control boundary. First, the terminate-imminent condition is sent to give all intervening call stack entries a chance to clean up, or stop the end operation. All call stack entries to the nearest control boundary end unless the resume cursor is moved while handling the terminate-imminent condition. If the call stack entry for the control boundary is also the oldest call stack entry in the activation group, the activation group ends, provided that call stack entries were ended." Thomas Raddatz. *=====================================================* e-mail Adresse: Thomas.Raddatz@xxxxxxxxxxx Homepage: http://www.tools400.de *=====================================================* ----- Original Message ----- From: <Gene_Gaunt@xxxxxxxxxxxxxxx> To: "MI Programming on the AS400 / iSeries" <mi400@xxxxxxxxxxxx> Sent: Tuesday, March 25, 2003 2:39 PM Subject: [MI400] Re: reclaim activation group with programs active > > Send an escape message to cancel the higher invocations. > > _______________________________________________ > This is the MI Programming on the AS400 / iSeries (MI400) mailing list > To post a message email: MI400@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/mi400 > or email: MI400-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/mi400. > > _______________________________________________ This is the MI Programming on the AS400 / iSeries (MI400) mailing list To post a message email: MI400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mi400 or email: MI400-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/mi400.
As an Amazon Associate we earn from qualifying purchases.
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.