-----Original Message----- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of McKown, John Sent: Tuesday, November 03, 2009 12:20 PM To: IBM-MAIN@bama.ua.edu Subject: asynchronous file open?
This is likely a crazy question. But I'm wondering if anybody has come up w= ith a way to do what I will call an asynchronous open of a tape or disk fil= e? Basically, what I want to do is an OPEN with an ECB=3D operand. When the= OPEN completes, the ECB is posted with the return code from OPEN. Why? So = that I can do other things while, perhaps, a tape is being mounted. Things = such as doing other BSAM type async I/O, or TCP/IP communications, or opera= tor communications via a MODIFY, all with a STIMER REAL going which invokes= an async exit which POSTs as "time out" type ECB. <SNIP> Yes. You make a subtask handle all the I/O for that DCB. When you post that TCB to go do work, it knows to post the higher level TCB that it has completed. You can still use a STIMER[M] with this, and determine how to handle a time out (a CALLRTM to ABEND the subtask could be done. I would think that a straight DETACH might be a problem that could get you a SC03 ABEND. In any case, the daughter task handles all the I/O and lets you know when it is finished with a read operation (by pointing to the record or buffer), etc. Regards, Steve Thompson -- Opinions expressed by this poster may not reflect those of poster's employer. -- ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html