On Mon, 24 Jul 2006 10:28:46 -0400 "Thompson, Steve (SCI TW)"
<[EMAIL PROTECTED]> wrote:

:>Could someone help me verify the rules for the TCBJSTCB pointer?

:>What I am trying to do is get back to the main task TCB for the address
:>space to use its TIOT.

What environment? 

:>Now I know that the first 3 TCBs in the address space (RCT, Dump, and
:>STC) all point to themselves when looking at their (respectively)
:>TCBJSTCB fields.

Yes, they are job step tasks.

:>This led me to understand that if a TCB is attached with a KEY0 state,
:>that the TCBJSTCB will point to "itself". And this idea was confirmed
:>when looking at the z/OS 1.7 data areas where I found a comment that
:>indicated that *any* TCB that was attached as KEY0 will have the
:>TCBJSTCB pointing to "itself". 

That would be new, if true.

ATTACH(X) option JSTCB=YES would control that. 

:>Ah, but now this is where the confusion comes in. How do I get to the
:>true Job Step TCB to look at its TIOT?

Depends on the environment.

Usually ASXBITCB will be useful.

:>Specifically, if I am trying to get to the "common" TIOT (shall we say,
:>Job Step TIOT), I may not be able to depend on the TCBJSTCB pointing to
:>the "true" Job Step TCB.  

Unless you are doing special stuff you can count on your task having the same
TIOT. 

:>Please tell me I'm wrong.

You are. 

:>If my assumption is correct, then the only way to get what I need is to
:>determine the type of address space, and then do:

What are you trying to do?

Is this some kind of exit?

--
Binyamin Dissen <[EMAIL PROTECTED]>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

----------------------------------------------------------------------
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