Problem:
When you run CBLCORED from the Net Express Command Prompt, it pops up a window to allow you to select the following options:
Disabled (default)
Enabled with prompt
Enabled with no prompt
How to enable this feature without having to select manually from a popup window?
Resolution:
The runtime tunable core_on_error was introduced in the All WebSync WrapPack v4.0.005 (ALL05N40.EXE) of Net Express v4.0.
There is a demo available on the sample site, which shows how to use (http://downloads.microfocus.com/examplesandutilities/utilities/CoreDump.zip)
The description below for core_on_error is in the documentation.
core_on_error
Specifies in what circumstances a core file is produced.
Syntax:
>>-----set core_on_error=---.-0-.-----------><
-1-
-2-
Parameters:
0
The run-time system never produces a core file on any signal or run-time system error. This is the default behavior of the run-time system.
1
The run-time system produces a core file when any system signal is received that would normally produce a core file on the host system; for example, SIGILL, SIGSEGV (which would usually produce a run-time system error COBRT114), and so on.
2
The run-time system produces a core file when any run-time system error occurs.
Properties:
Default:
0
Setting:
You can override the setting of this tunable using the Error handling when running programs outside of the IDE control on the Animate Options dialog box.
Comments:
You can animate core files to determine the cause of the problem if you have the appropriate dictionary (.idy) files. When a core file is produced, the run-time system itself cannot clean up COBOL file buffers or free system resources. This could lead to data file corruption that might not have occurred if no core file was produced.