Peter:

I'll be double-checking that, but, the WHOLE scratch area where the ECB is, is set to x'00' by an MVCL before I ever get to the ATTACHX (yes, the area is bigger than 1K).

And what the ECB contains is puzzling to me. Why would my WAIT get posted, if the task in question had not finished?

But, just to be sure, I can put an XC immediately ahead of the ATTACHX.

The ATTACHX is done, then in a bit, the WAIT on the named ECB is done, immediately followed by a CALLDISP (NON-APF) to ensure that the sub task has "terminated" so that the DETACH doesn't take an ABEND (which I've had that happen as well).

IDCAMS does take a bit to run, with just a comment line so it will have something to process.

Another person asked about IDCAMS. It may or may not need to be APF authorized. In any case, my code is NOT APF authorized. So as long as what is requested does not need authorization (APF that is), this works (has been for DECADES with the original version of the code that was RMODE24, NON-G3 compliant (if you don't know look up the history on I-Bank/D-Bank and 256 byte cache lines).

For the rest of you, sorry for the delay in responding, I had so much going on this weekend that I had to wait until sundown tonight before I could reply (Rosh Hashanah).

Regards,
Steve Thompson


On 10/02/2016 05:40 PM, Peter Relson wrote:
What is missing from the OP is just when he has looked at the ECB.

Given that it has an "RB address" it almost certainly has the "wait bit"
on. It has not yet been posted.

So why is there a question? Once the ECB is posted it will have the value
documented.

The ECB is posted when the attached task ends (whether normally or
abnormally); it is then up to the attacher to issue DETACH.

As has been alluded, it is also important to have initialized (usually to
zero) the ECB prior to issuing the ATTACHX.

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

Reply via email to