× 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.



Modifying Richard Ecuyer's example from February 2006:

http://archive.midrange.com/midrange-l/200602/msg00666.html

with

c Eval pm_counter=1
c movel 'QDBUDR ' Pm_CSEntry

and then, if the first QMHSNDPM call fails with CPF2479, calling it again with
c movel 'QDBPUT ' Pm_CSEntry

I get the name of the program that immediately tripped the trigger.

I noticed a lag in the response time, so to determine whether it was in the API calls or in the DSPLY statement, I added a couple of timestamps, one before the first QMHSNDPM call, and one after the QMHRCVPM call, DSPLYing them both just before the final DSPLY with my result, and found that the API calls only took 2-4 milliseconds on a "slim" 170 running V4R4, so I guess I'm OK on time.

But can anybody think of a case (or an OS release) where climbing one call stack level beyond the QDBUDR/QDBPUT call might fail to return the right program? Or explain why Ecuyer's example just climbed a straight 5 call stack levels, overshooting the target by 2 levels?


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.