I have a program. In some cases execution this program takes a long time. When execution is delayed I get a message from client “The host session has been disconnected”.
If I put an operator INPUT with some message in the middle of the program then a program completes without error.
I guess the problem is in some timeout. But I do not know in what timeout and how to set it.
Honestly, I do not know. In the program there is error handling.
ON ERROR DO
+nerr(n1) = 2
move *program to +program(a8)
move *error-line to +error-line(n4)
move *error-nr to +error-nr(n4)
move 1 to +language(i1)
CALLNAT 'ERSHORT'
CALLNAT 'ER3200'
DOEND
If I have an error in a program I get little report. But this code is not called in this case.
Me simply throws out the program. I get this message (see attachment).
The program accesses to the ADABASE database and does some calculations with records.
Browser works as a client. I connect via a browser to the remote server.
This is similar to the timeout issue with Natural Development Server (NDV). Check this forum for SPoD timeout issues. As far as I know, it has never been resolved, nor has it been determined whether its a Natural issue or a host/network issue.
When connecting Studio to a Unix or mainframe Natural host, I need to press ENTER every 15 minutes or so to maintain the connection. Yet my mainframe emulator or my Unix shell can be left idle for 12 hours without resulting in a timeout. Frustrating.