Should that PGM not be in the call stack, if other (SRV)PGMs pass the name
of that PGM on?

Why and how would a PGM pass on a PGM name, when it is not in the call

You want to check if the PGM is already in the call stack, because the
SRVPGM can call it, if it does not? (Activation Group *NEW, perhaps?)

I do not understand this implementation of this.

To answer your question: ir depends on the size of the call stack. Many
PGMs open, I would use the PGMMSG approach.

With regards,
Carel Teijgeler

*********** REPLY SEPARATOR ***********

On 6-8-2008 at 13:40 Lim Hock-Chai wrote:

I've a service program that accepts program-name as one of the input
parameters. When this parameter is passed in by the caller, it will
need to determine if the passed in Program Name is actually in the current
call stack. There are two ways that I know of that can
determine if a program is on the call stack, one is using the QWVRCSTK api
to get the current call stack; Another way is use the
QMHSNDPM+QMHRCVPM to get the call stack one level at a time. Does anybody
know which will perform better, or is there another way to
determine if a program is on the current call stack?

This thread ...


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

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