|
Jon Paris wrote:
>> FileA has a trigger program(RPG) that modifies the buffer contents with a unique sequence number. >> I would like to have this number available to the calling program. I would tend to go with the User Space option (using maybe the job number to name the space?) as being the most efficient. Using pointers it is as fast to access as any passed parm and both the trigger program and the program that caused the trigger would have easy access to it. After the initial call (and resolving the pointer) it becomes just another variable - why _not_ use it?
I have a similar problem and I don't know if there is a practical solution. I am trying to work out how to return data/messages from a trigger program in a multithreaded environment (Java). The trigger program (RPG) will need to be 'synchronized' to ensure it is thread safe, but, how is information from the trigger returned to the correct thread in the correct job?? Not an ideal environment for triggers, I suspect! Any ideas are welcome. Many thanks. Syd Nicholson
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.