Thanks. I always do an Ignore (MVI 3(R1),4) and branch to the address passed in R14.
I do the Ignore without checking whether it is an allowed option (it is in this case) on the theory that if it's not, what am I going to do? - Tell QSAM to proceed with the ABEND, which is what QSAM does anyway with the Ignore. I don't do Delay because in my particular situation, it's always a one-DCB open. I don't request Recovery because it is not a recoverable ABEND (typically - and not in this case). Other than that, there's not much to say about how I process the ABEND. I save the codes and the DD name pointed to by DCBTIOT, tell QSAM to Ignore, and return. I'll mail you the code off line if you want. I tell QSAM to Ignore but I don't ignore it - I pass an error back to the HLL caller and do not attempt to further process the dataset, other than to CLOSE the DCB (outside the exit). All suggestions welcome. Thanks again, Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Mark Thomen Sent: Saturday, January 21, 2006 10:48 AM To: [email protected] Subject: Re: QSAM DCB not restored by CLOSE following S013-18 on OPEN You might want to check section 3.12.6 DCB ABEND EXIT in DFSMS Using Data Sets. There are a lot of options and you haven't described exactly how you process the ABEND. ---------------------------------------------------------------------- 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

