COBOL Runtime Error Code – 177 Attempt to cancel program failed (Fatal)

In this post, you’ll learn about the COBOL runtime Error Code 177 and the reason why you are receiving it

COBOL Error Code :

177

Reason for this Error in COBOL

Attempt to cancel program failed (Fatal) -You have tried to remove a currently executing program or its parents or grandparents, from memory. Alternately, you have tried to cancel a DLL, either directly or indirectly as an imported DLL, that contains an entry point which has been registered as an EXIT LIST function via the OS/2 API call DosExitList. -Once your program has terminated you need to recode your program to ensure that you do not try to cancel a program (or its parents or grandparents) while it is still being executed. Locate the erroneous DLL and ensure that the EXIT LIST function is removed before you cancel the DLL. If you cannot recode the DLL, you can set the O RTS switch to force a logical cancel on the DLL. See also:D2 RTS switch O RTS switch