Okay, this might sound like a crazy thing to do, but it is what the application requires. I want to allow concatenation of dissimilar files (such as a VB file following several FB files). The system, of course, thinks this is very odd, and issues an S013 abend as soon as I read my way down to the file that is unlike the previous ones. I was trying to intercept the abend through the SYNAD option on a DCBE, but that appears not to be invoked for this error. (The EODAD on the same DCBE does work, so I don't think there is a problem with my general use of the DCBE.) Perhaps the system does not consider this particular error to fit into the category of an "uncorrectable input/output error," although that would certainly seem accurate.
An existing application appears to be trapping this condition through an EXLST on the DCB. It creates an EXLST for type x'85' that may be more applicable to the particular error than the SYNAD option. I have been having some troubles exactly imitating in the new appliation what this existing application is doing, although this is presumably just a matter of tweaking (in spite of some fundamental differences between the applications, such as RMODE=31 in the new application). But I was at least hoping for some confirmation on the preferred way of accomplishing this handling of the abend within the code.
Any insights?