You're right, it isn't very intuitive.  From what I could see it tells
me if I am in a TSO or Batch environment, but not if called from Rexx.

I've noticed that using the PASSENVB option on the CALL will put the
Rexx ENVBLOCK address in R0.  On the other hand it is ignored for
authorized programs.  (-:  They really make it a challenge to call
authorized stuff from Rexx.  

The ECT also contains the address of the Rexx ENVBLOCK I just noticed.
I wonder if that might help.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Comstock
Sent: 1. toukokuuta 2008 19:03
To: [email protected]
Subject: Re: Using IKJCT441 with CALL *(module) from Rexx

Lindy Mayfield wrote:
> 
> If this is valid, what would be a good way for the program to know how
> it is being called?  I've been looking at some dumps but haven't found
> anything yet.  Like something interesting at R0.
> 
> Thanks,
> Lindy

The LE folks have supplied a callable service, CEE3INF,
in z/OS 1.8 which returns some information on the current
environment. _But_ the values are not intuitive in some
cases (in particular, "batch" may not mean what you
think). Might be worth a look at.


Kind regards,

-Steve Comstock
The Trainer's Friend, Inc.

303-393-8716
http://www.trainersfriend.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to