The answer to your first paragraph is: Yes. -- Except that the ECB isn't passed in as a parameter, nor should it be. You would have to pass that address to your attached task as part of a parameter list, but I can't think of any reason you would do that. ---------------------------------------------------- The ECB= parameter on the ATTACH macro is so that *MVS itself* can notify the parent when the attached task terminates.
The attached task *knows nothing* about that particular ECB, nor should it. The parent task should do *no more* than either (a) check on it, or (b) wait on it. *MVS* will post it when the attached task terminates, and *MVS* will fill in the completion code with the completion code returned from the attached task. ---------------------------------------------------- If you want communication between the parent and the child, you have to either pass in a parameter list, or otherwise have some type of locatable storage, including your own managed ECBs. I'm not sure what you are asking regarding your question about "what POST does", so I'll wait on that to see if you have a more direct question. David Logan -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Lindy Mayfield Sent: Sunday, January 20, 2008 9:17 AM To: [email protected] Subject: Re: How does ATTACH pass address of ECB to child? Let me see if I am understanding it all. There really isn't a need for the daughter task to POST because the system does automatically when the daughter process ends. And just about the only information that the daughter can get from the ECB is whether the parent has issued a WAIT or not. I found it in the ECB description of the ATTACH parms: "The ECB must be in storage so that the issuer of ATTACH can wait on it (using the WAIT macro) and the system can post it on behalf of the terminating task." Gotta love _The System_. Now I'm trying to figure out what POST is actually used for. The doc reads like a James Joyce novel. http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2A670/6.1 Lindy -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Paul Gilmartin Sent: 20. tammikuuta 2008 17:45 To: [email protected] Subject: Re: How does ATTACH pass address of ECB to child? On Sun, 20 Jan 2008 16:00:41 +0100, Lindy Mayfield wrote: >Ok, thanks, I see now. ATTACH doesn't put it there automatically, I put >it there unless I use a parameter list, and then I would make it a part >of that list. > Now that you can find it, what use can you make of it? You shouldn't POST it. I suppose you can make some decision based on the WAIT bit: e.g. process in a loop until the parent WAITs then terminate. >-----Original Message----- >From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On >Behalf Of Larry Crilley > >Not sure if someone responded or not... > You can generally find out by reading the followups. >When the daughter is entered, the ECB address will be off of R1. > No, R1 points to the argument list. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

