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.
Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         OS/400, i5/OS Technical Specialists
   
http://www.flybynight.com.au/
   Phone: +61 2 6657 8251   Mobile: +61 0411 091 400        /"\
   Fax:   +61 2 6657 8251                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------
 
As an Amazon Associate we earn from qualifying purchases.
	
 
This mailing list archive is Copyright 1997-2025 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.