On Thursday, 12/27/2007 at 09:10 EST, "Dale R. Smith" <[EMAIL PROTECTED]> wrote: > In addition to the excellent suggestion of using a "secret" parameter or > option in the calling Execs, you could also set a "secret" GLOBALV > variable in the calling Execs and retrieve it in the called Exec. : > An advantage to using GLOBALV is that you don't have to change your > parameter/option parsing logic and if you need to know which Exec called > SUBEXEC, then the calling Exec name is in "calledby".
BTDT. Be sure you write a NUCXLOADable module that can detect an abend or HX and unset your GLOBALV variables. Likewise, use SIGNAL ON HALT in your exec to handle HI. Programs need to have far more robust error recovery when they use out-of-band signaling mechanisms. Somebody has to claim responsibility to reset all the signals! :-) As a famous engineer once said, "The more complicated the plumbing, the easier it is to stop up the drain." Alan Altmark z/VM Development IBM Endicott
