On Thu, 17 Sep 2020 at 10:21, Pierre Fichaud <[email protected]> wrote:
> For the current TCB, I want to extract the thread id. > I'm using BPX1GTH. > I don't know about BPX1GTH, but it's trivially easy to go from a TCB address to a thread ID yourself. If you want the current TCB, its address is in PSATOLD. Or maybe you have a TCB address from elsewhere. Either way, then TCBSTCB -> STCB, then STCBOTCB-> OTCB, and there you have OTCBTHID. The mapping macros for the above are IHAPSA, IKJTCB, IHASTCB, and BPXZOTCB. Of course your current TCB may not be dubbed, in which case at least one of the above pointers (presumably STCBOTCB) will be zero. So you should check as you go. Tony H. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
