i have a self-written rexx function where i would like to determine the name of the exec who called that function? is there any possibility to do so? sysvar('SYSICMD') doesn't return the name of the calling exec.
bye,
andi
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LIST...@VM.MARIST.EDU with the message: INFO TSO-REXX
I don't think I've ever seen an easy way to discover the name of the routine
that called my routine, though. I can learn various things about the nature
of the call, but I think if anyone here has a way to do what you want it'll
involve peeks.
---
Bob Bridges, rhb...@attglobal.net, cell 336 382-7313
work bob.b...@libertymutual.com, 317 581-6487
/* Do you know what constitutes a "hate crime"? Put your thinking caps on.
What tools do we need to determine whether a crime was motivated by hate or
prejudice? Answer: We need thought police. -from "See, I Told You So" by
Rush Limbaugh */
-----Original Message-----
From: Andreas Fischer
Sent: Thursday, November 11, 2010 07:18
i have a self-written rexx function where i would like to determine the name
of the exec who called that function? is there any possibility to do so?
sysvar('SYSICMD') doesn't return the name of the calling exec.
----------------------------------------------------------------------
bye,
andi
---
Bob Bridges, rhb...@attglobal.net, cell 336 382-7313
work bob.b...@libertymutual.com, 317 581-6487
/* It's so simple to be wise. Just think of something stupid to say and
then don't say it. -Sam Levenson */
-----Original Message-----
From: Andreas Fischer
Sent: Friday, November 12, 2010 02:57
well no, i wrote the function, not the function wrote itself :-) sorry if my
english is ambigious and/or faulty.
--- TSO REXX Discussion List <TSO-...@VM.MARIST.EDU> schrieb am 12.11.2010
04:22:17:
> You have a REXX function that wrote ITSELF? Now that I have really got to
> see; would you be willing to share it?
>
> -----Original Message-----
> From: Andreas Fischer
> Sent: Thursday, November 11, 2010 07:18
>
> i have a self-written rexx function where i would like to determine....
The simple answer is for the calling program to pass its own name in
the call. Why make work?
Well, if you've got BatchPipes installed, BatchPipeWorks makes it easy:
'PIPE rexxvars 1 | var callersource'
puts the calling exec's source string into the variable CALLERSOURCE.
I don't think there's any way for REXX to get at the information
directly, though. You need some external program.
�R
Well, if you've got BatchPipes installed, BatchPipeWorks makes it easy:
'PIPE rexxvars 1 | var callersource'
puts the calling exec's source string into the variable CALLERSOURCE.
I don't think there's any way for REXX to get at the information
directly, though. You need some external program.
�R
----------------------------------------------------------------------