Thanks I got it I had not coded the ptcbaddr and purgestoken will do Thanks again
On Jun 4, 2017, at 5:51 PM, Peter Relson <[email protected]> wrote: >> What I originally did was pass my TCB PSATOLD To the SRB. >> So in the SRB I csn have my TCB as the TCB= > That is a technique that you can use if and only if you have made 100% > certain that the SRB will not run after the task terminates. Otherwise at > best you will get incorrect results; worse you will introduce a system > integrity exposure. One way to do this is to have scheduled the SRB to the > appropriate address space with SRBPTCB and SRBPASID fields set to match > the relevant task (PTCBADDR and PURGESTOKEN on IEAMSCHD if using > IEAMSCHD). In that case, termination of the task will either wait for the > SRB to complete (if it has started) or will prevent the SRB from starting > (giving control to the RMTR). > >> In the storage macro as I am in control ( for most things in my >> address space ) I should know when new task gets created > That is fairly unlikely without proper serialization (and you likely do > not hold the LOCAL lock). And more important is whether you know that your > task might have (perhaps unexpectedly) terminated. > > 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
