Jay, how often is this service program called? If a lot, you are looking at
a huge amount of overhead. Creating a new activation group takes a lot of
resources, only maybe second to creating a job.

If this service program is called a lot and changes frequently, you might
consider using a dynamic load of a service program. The API are
encapsulated in a service program that is available for download from the
Think400 website.

On Tue, Sep 15, 2020 at 7:44 PM Alan Campin <alan0307d@xxxxxxxxx> wrote:

Sorry, each time you call the api it gives you a new activation mark and
it loads a new copy. If the service program has been changed (New version
moved in) it gets activation mark of new version so subsequent calls uses
the new version. I use this technology in many different ways. I have
installed it in 4 companies (Newer version) so I figure it works. I use a
user space with a timestamp that triggers the reload.

On Tue, Sep 15, 2020, 3:55 PM Nathan Andelin <nandelin@xxxxxxxxx> wrote:


It looks like your trigger mediator uses QleActBndPgm() to dynamically
activate service programs. If I recall correctly, subsequent calls to that
procedure won't activate a newer version of a service program. It just
retains the old version, which was previously loaded in memory, no matter
how many times you call QleActBndPgm(). The only way I know of to
deactivate a service program and reactivate it is by ending and restarting
the activation group.

For a while, I held out hope that the DEACTPG MI Instruction might
deactivate a service program, so that the next time QleActBndPgm() was
called, it would activate a newer version. But the MI Instruction didn't
help, either.
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 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].