Hello everyone,

Is there some non-pipeline equivalent to this instruction, on z/VM, in "pure-rexx" (rexx with no CMP or CP) :
  "PIPE rexxvars 1 | spec w4 1 | var callingProgram"

... which, used in a program PRG2 EXEC, gives me the name of the program, PRG1 EXEC, that called PRG2 EXEC ?


I searched in the "DMS..." routines, discovered "DMSCALLR" which seemed nice, and tried this :
  call CSL "DMSCALLR" retcode caller_id 3

... which gives me what I want (precisely : "EXEC PRG1") for non-compiled EXEC, but which says that the calling program is "EAGRTPRC..." for compiled-EXEC.


By the way, I'm asking this because I'm writing a tool to analyse the calls to commands/programs in our EXEC programs (something similar to TRACEXEC, I'd say). And I can't use the usual commands (PIPE, ERASE, ...) in this tool if I want to analyse the calls to theses commands.


Thanks
Michaël

Reply via email to