Obtaining Storage in a Client Address Space

2017-06-02 Thread Joseph Reichman
Hi I saw the example of Storage Obtain in Client Address space in the Extended Addressability guide. I also came across a post by Peter Relson mentioning that the owning TCB Would be the xmem tcb ASCBXTCB. Would this storage be valid for as long the address space alive ? To clarify storag

Re: Obtaining Storage in a Client Address Space

2017-06-02 Thread Greg Dyck
On 6/2/2017 10:59 AM, Joseph Reichman wrote: To clarify storage if not released is around for the life of the TCB I am assuming TCB ASCBXTCB is around for the life span of the address space The answer is no, so step carefully. ASCBXTCB is *not* a constant value for the life of the address spa

Re: Obtaining Storage in a Client Address Space

2017-06-02 Thread Joseph Reichman
What I originally did was pass my TCB PSATOLD To the SRB So in the SRB I csn have my TCB as the TCB= In the storage macro as I am in control ( for most things in my address space ) I should know when new task gets created >> On Jun 2, 2017, at 2:34 PM, Greg Dyck wrote: >> >> On 6/2/2017 1

Re: Obtaining Storage in a Client Address Space

2017-06-03 Thread Binyamin Dissen
Well, you could use RCTP - that will survive. On Fri, 2 Jun 2017 12:00:20 -0400 Joseph Reichman wrote: :>Hi :> :> :> :>I saw the example of Storage Obtain in Client Address space in the Extended :>Addressability guide. I also came across a post by Peter Relson mentioning :>that the owning TCB

Re: Obtaining Storage in a Client Address Space

2017-06-03 Thread Joseph Reichman
Thanks > On Jun 3, 2017, at 4:15 PM, Binyamin Dissen > wrote: > > Well, you could use RCTP - that will survive. > > On Fri, 2 Jun 2017 12:00:20 -0400 Joseph Reichman > wrote: > > :>Hi > :> > :> > :> > :>I saw the example of Storage Obtain in Client Address space in the Extended > :>Addressa

Re: Obtaining Storage in a Client Address Space

2017-06-04 Thread Peter Relson
ASCBXTCB changes as an address space starts and terminates, as well as (for an initiator) when a job starts and terminates. Thus it would not be the case that that task exists for the life of the address space. It exists unchanged while the jobstep program task (and any subtasks) exist. Note th

Re: Obtaining Storage in a Client Address Space

2017-06-04 Thread Joseph Reichman
Peter Thanks if I pass the TCB of the task that scheduled the SRB to the SRB I can use that TCB in the TCBADDR param of the storage obtain I would know how long that TCB is around And thus know how long storage is valid > On Jun 4, 2017, at 4:59 PM, Peter Relson wrote: > > ASCBXTCB chan

Re: Obtaining Storage in a Client Address Space

2017-06-04 Thread Peter Relson
>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 w

Re: Obtaining Storage in a Client Address Space

2017-06-04 Thread Joseph Reichman
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 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 y