× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



And what happens when you need to change the TTT program? The system has
resolved to it and has the address in memory. If you delete the program,
the next trigger call will crash the program because what it points at is
gone.

If you rename, all the calls will continue to to the old program until you
end any job holding a database lock. In short, it does nothing for you.

That is why you want a trigger mediator. You can rename the implementing
service program and reload and everyone has the new logic. Can't do that
with programs.

Trigger mediators need to have several characteristics.

1. Has standard program that is the trigger program that never changes.
2. Ability to change a trigger control.
3. Trigger logic implemented as service program.
4. Ability to instantly reload.
5. All trigger associations in database tables.


On Tue, Apr 19, 2016 at 12:41 PM, Manuel Chaviano <manny@xxxxxxxxxxxx>
wrote:

We write a simple CL program to act like a wrapper for the trigger
program containing the logic.

Just getting and passing along the required parameters:

0005.00 PGM PARM(&BUFR &BYNARY)
0006.00
0007.00 DCL VAR(&BUFR) TYPE(*CHAR) LEN(1001)
0008.00 DCL VAR(&BYNARY) TYPE(*CHAR) LEN(4)
0009.00
0010.00 CALL PGM(TTT) PARM(&BUFR &BYNARY)
0011.00
0012.00 ENDPGM

TTT is the "real" trigger program that performs the required logic.

El Tue, 12 Apr 2016 14:23:46 -0400
Vinay Gavankar <vinaygav@xxxxxxxxx> escribió:
Thanks. Just confirmed that the programs are locked. Will defer the
recompilation to a time when there is an 'outage' and all the engines are
down.

On Tue, Apr 12, 2016 at 1:19 PM, James H. H. Lampert <
jamesl@xxxxxxxxxxxxxxxxx> wrote:

Vinay Gavankar asked:

Can I recompile a Trigger Program when the Trigger is Enabled and the
file is open?

and Dave Clark replied:

The program object is not locked so it can be
replaced/recreated.


That's not MY experience.

In my experience, trigger programs are ALWAYS locked (multiply locked,
if
the trigger program is shared by many files) by every job that trips
them,
and remain so until the job either ends or closes the triggered
file(s) and
does a RCLRSC.

If you expect to be doing a lot of recompilation of trigger programs,
you
might want to use a trigger-mediator.

--
JHHL

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L-Zwy7GipZuJhWk0Htik3J/
w@xxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.




--
L8R


__
///
__ ///
\\\///
\XX/ FreeBSD 10-STABLE


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

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.