It sounds like you are over-complicating things my friend. - Clear the high-order byte of the ECB to 0. - Issue the ATTACHX with the ECB. - Check for non-zero return code. Note that many errors (like S806) come back on the ECB, not from the ATTACHX. - Do whatever other work the main task wants to do - WAIT on the ECB - When the WAIT completes, the task return code is in the ECB. Remember the format: an S806 will look like 40806000. A U4000 will look like 40000FA0. - Gather any information you want out of the subtask TCB (optional) - Issue DETACH
It's that simple. Anything else is I think an over-complication. Charles ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
