Good to know. Glad Phil asked. Thanks,

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Walt Farrell
Sent: Tuesday, September 22, 2015 10:22 AM
To: [email protected]
Subject: Re: Getting the TIOT

On Tue, 22 Sep 2015 09:25:09 -0700, Phil Smith <[email protected]> wrote:

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

I believe that both are intended interfaces, but I think they perform different 
functions. Yours finds the start of the TIOT, and then you need to find the 
right entry. It won't work if the DD uses the XTIOT instead.

GETDSAB lets you access DSABTIOT which gives you the TIOT entry for that DD 
statement, which may be in the TIOT or the XTIOT, without the need to manually 
scan the TIOT or XTIOT to find the right entry.

Perhaps this will provide some additional information that you'll find relevant:
 
https://www-01.ibm.com/support/knowledgecenter/SSLTBW_1.13.0/com.ibm.zos.r13.idak100/bam12set.htm%23bam12set

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

Reply via email to