Not sure if someone responded or not...

When the daughter is entered, the ECB address will be off of R1.

        L  R2,0(,R1)
R2 should now have the address of the ECB.  You can use this to POST
different return codes, should your logic require it.

 
Larry Crilley
Dino-Software Corporation
800.480.DINO
412.366.3566
www.dino-software.com
 
Dino-Software Utilities
T-REX - Superior catalog management tool inclusive of HSM & Tape audits 
REORGadon - First REORG While-OPEN tool for HSM
Teradon - First ever OnLine REPRO MERGECAT utility 
Xtinct - DASD Data purge 
RTD - DASD Real Time Defrag 
DAL - Analysis for Legato in an easy to view format
Sentinel - Real-time FTP Management.  All secure, all the time.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Lindy Mayfield
Sent: Friday, January 18, 2008 6:57 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: How does ATTACH pass address of ECB to child?

Thanks.  That makes sense.

What doesn't is that Cannatello's book has a page and a half on doing
POST, with one example of how to change the ECB without using the POST
macro.

He even has the child checking the ECB to see if a WAIT had been issued.

Lindy

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Wayne Driscoll
Sent: 19. tammikuuta 2008 1:39
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: How does ATTACH pass address of ECB to child?

Lindy,
The child doesn't need to know anything about that ECB.  The ECB
specified on the ATTACH macro is used by the system.  When the subtask
completes and returns to the system (via the oldest PRB on the task
queue issuing an SVC 3), the system will post the ECB to notify the
mother task that it is safe to issue the DETACH.  If the child task
POSTS the ECB, and continues to execute, when the mother wakes up and
issues the DETACH you will see x3E abends caused by terminating a TCB
that was still running.

Wayne Driscoll
Product Developer
JME Software LLC
NOTE:  All opinions are strictly my own.



-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Lindy Mayfield
Sent: Friday, January 18, 2008 5:32 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: How does ATTACH pass address of ECB to child?

I wonder if I am missing something.

Here is what I think:  My main program does an 

ATTACH,EP=CHILD,ECB=ECB1
WAIT ECB=ECB1
DETACH (R1)

The program CHILD does its thing and then when done

POST ECB1

Which IIUC causes the main program to stop waiting. How does CHILD know
the address of ECB1 in order to POST?  Or do I need to pass the address
as a parameter?

Lindy

----------------------------------------------------------------------
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

----------------------------------------------------------------------
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

Reply via email to