I'm rusty, but my understanding from MVS/ESA days is that PSATOLD is always set as the current task becomes active, and there is one PSA for each 'engine', so by definition if your code is running under a TCB, it always gets its own TCB address from that field.
Also, I haven't seen a TCB virtual address change (except where the task is terminated for some reason, and the same code is restarted under a fresh TCB, of course, but that doesn't count) Please shoot me down if this has changed, naturally :-) If the question is for code running in a different AS to find the current TCB in a target AS, that's a lot more complicated :-) Roops On Sat., May 15, 2021, 13:24 Peter Relson, <[email protected]> wrote: > What task am I running under? That is PSATOLD. > > What tasks are currently running? That is PSAAOLD and PSATOLD for every > PSA. > > What tasks of a particular address space are currently running? That is > the subset of the previous item for which PSAAOLD is the ASCB of the > address space > > And has been mentioned, the data could change immediately after you have > looked. > > Peter Relson > z/OS Core Technology Design > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
