|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2010-10-06 11:35, Alan Campin wrote:
We also ran into big problems with errors in named activation groups.Every
time that an error is thrown in a named activation group the systemdestroys
the activation group and when you try to go back to it the programcrashes
because the pointer is now pointing at a object that doesn't existanymore.
That's odd. I think something else must be happening. I have a program
that runs in a named activation group, and writes data to a QNTC network
share. It doesn't attempt to open the output file until the first buffer
is ready to write. It's just simpler that way, since failures, while
they do happen, are rare. If an error occurs, usually because the output
file aleady exists (operator error) the program issues an escape message
to itself, and waits for the operator to investigate and respond by
canceling the program. That causes the uncommitted transaction to be
rolled back, and the activation group to be destroyed, all by default.
The operator then disposes of the pre-existing output, retrys the failed
operation, and everything is happy. The job itself remains active.
Commit doesn't run until the program completes without error, so the
program either does everything or nothing. Either is fine in terms of
system requirements. It's been working just fine for 5 years or so now.
(v5.4.0)
- --
Pete Hall
pete@xxxxxxxxxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkytCfoACgkQXczQcKdXKg6qTwCfXWizVKyGZhpkh+ZxrPoQf2p6
A2oAoMHpkUXpo82sGPsLnI8XgmiiikEH
=GDYb
-----END PGP SIGNATURE-----
--
This is the RPG programming on the IBM i / System i (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.
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.