is there any possibility to obtain an information about the program
(name) who called me (when i run as a subroutine or function)?
thanx
heinz
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Fon: +49(0)7083 524965
Fax: +49(0)7083 526877
Mobil: +49(0)175 261 21 28
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LIST...@VM.MARIST.EDU with the message: INFO TSO-REXX
Zitat von "Hardee, Charles H" <Charles...@CA.COM>:
when calling your rexx program from other rexx program you can send
program name as parameter or you can store it in stack...
Regards, IgorQuoting Karl-Heinz Wittemann <k...@SPGMBH.DE>:
i am not familiar wir control blocks, but thought, that somewon could
know, if it is possible to get the information by storage() or
something like this.
thanx
heinz
Zitat von Igor Miskulin <ig...@MISKULIN.COM>:
John
-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-...@VM.MARIST.EDU] On Behalf Of Karl-Heinz Wittemann
Sent: Wednesday, June 10, 2009 10:07 AM
To: TSO-...@VM.MARIST.EDU
Subject: Re: Info about caller
right. the problem is. that I (the subroutine/command/function) can be
called from hundrets of other rexx-programs from a lot of other people
and i am not able to talk to everyone who calls me. therefor i would
like to find out this by myselv, without changing something with parms
and arg().
i am not familiar wir control blocks, but thought, that somewon could
know, if it is possible to get the information by storage() or
something like this.
thanx
heinz
Zitat von Igor Miskulin <ig...@MISKULIN.COM>:
----------------------------------------------------------------------
> I remember a long time ago when working in IBM, there was an
> internal program called "caller" that allowed your REXX program to
> gain access to your callers variable pool. It was probably written
> in assembler. It it could get at your callers variables, I would
> think it could also get other information such as the name of the
> program. I don't think the program was ever made public but it
> demonstrates that getting at caller information is possible.
>
(OT) In CMS Pipelines this is a builtin facility.
--gil
>>> "jim harrison" <jimh_l...@VERIZON.NET> 6/11/2009 1:46 PM >>>
SUBROUTINEs maybe not, FUNCTIONs probably, and CALLs for sure.
Any time a command is entered via TSO command line it goes in a storage location that can be accessed off the CVT. I used to get the information by scanning the most recent command line buffer. I do not really remember the details now, and when I looked for some sample code I could not find it. I think I originally discovered it by just looking at dump. I have programs that look at storage locations via pointer walking, so I would think it should be easy to display it once the rules for finding the command workarea is known.
That a Data Areas manual thing. Or better just take a dump from a called REXX command and see what's up.
Marc Irvin
Analyst Admin, IT Security
Pitney Bowes
PB Internal: 8-421-3422 | External: (203) 739-3422 | Mobile (USA): +1 203 820-3013
John
-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-...@VM.MARIST.EDU] On Behalf Of
Marc V Irvin
Sent: Friday, June 12, 2009 3:51 AM
To: TSO-...@VM.MARIST.EDU
Subject: Re: Info about caller