CMS will not abend that. Rather, CP will because its a hardware abend.?You will get a PIC 9.?CMS will detect it and take action by default, which may be undesirable. Within a C runtime, you can trap a PIC 9 by issuing a SPIE, and specifying?an exit to take.
SPIE stands for Set Program Interrupt Exit.?
So, as part of your C runtime prolog, you issue an SPIE for PIC 9 before you give control to main, and set a branch to a location where you have the ability to cleanly close any IO in process and de-allocate?any memory before termination by the C runtime epilog.
On Thu, Apr 23, 2020 at 4:58 AM adriansutherland67 <adrian@...> wrote:
On Thu, Apr 23, 2020 at 09:52 AM, Dave Wade wrote:
Doesn¡¯t SPIE cover all of these. Also STAE is available
You see - I have no idea really! I can only follow advice. There are two additional concerns, which are specific if GCCLIB.
1/ If a CMS Abent clears freemen (and I think it doesn't?), we have a bit of a problem because multiple programs memory will be trashed so I would seek to stop the CMS ABEND and instead just close the program if that makes sense?