I agree with some others: this is a management issue, not a technical one. I can think of a couple of things to try (such as a sub task, a timer pop, or a 'handle condition' ESTAE that hides the x22 abend), but this would be a lot of work and increases the fragility of the process.
FWIW, I see a lot of C programs that typically don't abend for anything. Causes consternation for our job scheduler. So, perhaps you could simply rewrite the program in C. -----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 with a way to do what I will call an asynchronous open of a tape or disk file? Basically, what I want to do is an OPEN with an ECB= 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 operator communications via a MODIFY, all with a STIMER REAL going which invokes an async exit which POSTs as "time out" type ECB. What really brought this on was a desire to do a MODIFY to a job which was "hung" on a tape mount to tell the step to terminate. Why not cancel? Because that causes an S222 or S122 abend which is tracked for production jobs and results in "pain points" being assigned for "having something go wrong." Even when it was a hardware failure. Software should not terminate abnormally for any reason. Not even if the entire CEC fails! <sarcasm/> And certainly not just because there is some tape hardware problem! John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * (817)-961-6183 cell john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM ---------------------------------------------------------------------- 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 NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ---------------------------------------------------------------------- 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