Anyone have any suggestions for trapping program termination due to session termination as in a Windows or Unix environment?
We are running RM/Cobol programs in Unix environment (SCO 5.0.6). The users are running these programs under telnet and are sometimes (often enough for us to want to do something about it) prematurely terminating their telnet sessions which causes the Cobol program(s) to terminate.
We would like to trap these terminations from within the program in order to record some key information in order to assist with the subsequent recovery effort. RM/Cobol has a logging feature which allows to us identify the user, date/time and program location of the termination, but of course cannot tell us anything about the internal state of the program (i.e. acct #, cust #, stock #, etc.) Oddly enough, the users are not always a reliable source for this information either.
Has anyone else had to deal with this situation or have any suggestions to offer?
Code what you mean,
and mean what you code!
But by all means post your code!
Razalas
We are running RM/Cobol programs in Unix environment (SCO 5.0.6). The users are running these programs under telnet and are sometimes (often enough for us to want to do something about it) prematurely terminating their telnet sessions which causes the Cobol program(s) to terminate.
We would like to trap these terminations from within the program in order to record some key information in order to assist with the subsequent recovery effort. RM/Cobol has a logging feature which allows to us identify the user, date/time and program location of the termination, but of course cannot tell us anything about the internal state of the program (i.e. acct #, cust #, stock #, etc.) Oddly enough, the users are not always a reliable source for this information either.
Has anyone else had to deal with this situation or have any suggestions to offer?
Code what you mean,
and mean what you code!
But by all means post your code!
Razalas