On 30/09/2009, at 4:09 PM, Dave McKenzie wrote:
One possibility is to use the QWVRCSTK API to examine the
stack. I put a sample pgm at:
Thanks. I considered that option but felt (entirely subjective
with no empirical evidence) that materialising the call stack
would be slower than getting parent pid and job name. Still, I
only need to test if in QSH once in the program so speed doesn't
really matter. I'll try to make time to time both approaches.