What you suggest is what I do:

        psa* psaPtr = NULL;
        tcb* tcbPtr = (tcb *)psaPtr->psatold;
        tiot* tiotPtr = (tiot *)tcbPtr->tcbtio;

Never had a problem with it. Hard to believe this would ever change. I
suspect it would break half the vendor code in the world, and half of the
home-grown customer utility type programs.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Phil Smith
Sent: Tuesday, September 22, 2015 9:25 AM
To: [email protected]
Subject: Getting the TIOT

To find the TIOT, a colleague uses GETDSAB, then pulls DSABTIOT out of that.
I've always seen:
         L     R3,540        Get TCB address
         L     R3,12(,R3)    Get TIOT address
...which seems a tad bit mo' shorter :)

Looking at GETDSAB, it's beautifully commented with over 500 lines of
preamble, none of which explain what the DSAB is or why one would want to
get one (OK, that's a different rant - z/OS doc in general is really short
on theology; z/VM doc is MUCH better about this).

So the real question: I expect GETDSAB is the documented interface, but is
the two-line approach common? Aside from theoretical changes, is there any
reason not to use it?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to