Problem:
This demo shows how to generate and animate a dump file using the core_on_error runtime tunable.
See also KB article 23215 for details of doing this using the CBLCORE utility.
Resolution:
BUILD W/RELEASE:
Express v4.0 including ALL03N40 WrapPack.
SOURCE FILES:
==========
Program Files Description
---------------- -----------------------------------------------------------
CBLCORE.CBL Test program that will cause a runtime 114 error
Resource Files:
--------------------------- -----------------------------------------------------------
COREONERROR.CFG
Runtime tunable file DOIT.BAT
Bat file
OPERATION:
========
From a Net Express Command Prompt execute the included BAT file, doit.bat. This bat file compile for animation and link the test program then it will set the COBCONFIG_ environment variable to point to the provide coreonerror.cfg file and execute the program that will cause a runtime 114 error. The BAT file will then execute the following command; MFNETX /DEBUG:CBLCORE.
This will bring you in the Animator at the line where the runtime error occured.
REFERENCES
========
Documentation for the core_on_error runtime tunable;
core_on_error:
Syntax: set core_on_error=integer
Parameter: integer where integer specifies in what circumstances a core file is produced. You can look at core files with Animator. See your Debugging Guide for details. integer can be:
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.
You can animate core files to determine the cause of the problem if you have the appropriate Animator information files.
Note: 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.
==========================================================
Keywords: Example, sample, demo, demonstration, Utilities, cordump.zip
demo.ex
demo.ne



