Schubie wrote:Most likely you could (A) ABEND the program or (B) set a non-zero RETURN CODE and terminate the program
I think michel123 is looking for something like the SYNADAF macro for non-VSAM. It's possible that the "VSAMFAIL" routine, described here
, might be able to do what he wants, but I've never used it, so I can't vouch for it. Unlike the "DAIRFAIL" routine, it does not appear to have an option to return its error message in a buffer, which limits its utility.
When I said I've never used it, I was not telling the whole truth. I used it once, for a TSO related capability of the program, but I was unhappy with its output and never tried it again.