gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [open-cobol-list] OC runtime enhancement needed


From: Bill Klein
Subject: RE: [open-cobol-list] OC runtime enhancement needed
Date: Sun Jan 22 14:10:00 2006

The best (IMHO) solution to this is to look at "common exception handling"
introduced in the '02 Standard.   

> -----Original Message-----
> From: address@hidden 
> [mailto:address@hidden On 
> Behalf Of Sergey Kashyrin
> Sent: Thursday, January 19, 2006 5:56 PM
> To: address@hidden
> Subject: [open-cobol-list] OC runtime enhancement needed
> 
> Hi,
> 
> There are couple of things which usually needed for me from 
> Cobol (or OS) to build our system in a more reliable way.
> The first thing of course is an errors/exceptions handling
> 
> Microfocus Cobol (on all platforms), as well as Fujitsu on 
> Win32 are providing some additional functions:
> CBL_ERROR_PROC allow to install (or remove) your "Cobol error 
> handler" which can be written in C/C++
> CBL_EXIT_PROC allow to install/remove "Cobol EXIT handler" 
> which usually not necessary for me but in the case of Fujitsu on UNIX 
> where they missed CBL_ERROR_PROC.
> 
> Other platforms have their own ways to install handlers -
>      CEEHDLR on mainframe,
>     #pragma exception_handler on AS400
> 
> On unix of course I'm catching signals, but in the case of 
> OC, OC runtime is doing that, so it might bring the conflict 
> between OC 
> handler and my own.
> 
> Other than that, in MFocus the handler installed via 
> CBL_ERROR_PROC is getting the full Cobol runtime error 
> message as a string,
> so it can write that to the log or do some analysis and 
> possible "longjmp" (MFocus even has coblongjmp)
> 
> What do you think, is it a good idea to implement those 2 
> functions (or at least CBL_ERROR_PROC) ?
> It is not a big deal to do, so I'm thinking to do that anyway.
> 
> Any alternative ideas ?
> 
> Regards,
> Sergey
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep 
> through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  
> DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&;
> dat=121642
> _______________________________________________
> open-cobol-list mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/open-cobol-list
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]