![]() |
![]() |
![]() |
![]() |
![]() |
ART for Batch supports user COBOL program in runb/runbexci debugging for Micro Focus COBOL and COBOL-IT COBOL.
• Debugging with Micro Focus COBOL (using anim tool)
• Debugging with COBOL-IT COBOL (using deet tool)You can configure all the jobs and programs that you want to debug in the configuration file batchdebug.cfg. Only these jobs/programs configured in this file could be debugged. See Configuring for Debugging in Configuration File for more information.To support COBOL debug, all COBOL programs must be compiled to output with debug information. In particualr, for Micro Focus COBOL, .idy file must exist.
1. Create or modify batchdebug.cfg configuration file at ${JESROOT}. See Configuring for Debugging in Configuration File for more information.
2.
3. Submit your job. It makes Animator attach to the started COBOL program.
Note: At the end of debug session, you may need to detach Animator from the program that you just debug.
1. Create or modify batchdebug.cfg configuration file at ${JESROOT}. See Configuring for Debugging in Configuration File for more information.
2.
3. Use vncserver to start a VNC environment. In VNC xterm, start debug session with command deet -p your DEBUGID. It starts a Deet graphic UI and makes Deet attach to the COBOL program.
4. Debug this COBOL program in Deet graphic UI.
Note: At the end of debug session, you may need to detach Deet from the program that you just debug.For more information about Deet graphic UI, see COBOL-IT COBOL documentation.Whenever you launch runb or runbexci to start a COBOL application program, ART for Batch checks configuration file batchdebug.cfg at ${JESROOT} to determine whether to enable COBOL debug; therefore, to enable it, you should set this configuration file at the very beginning. Only the programs with the DEBUGID that you configure in batchdebug.cfg can be debugged.The format of batchdebug.cfg is:Table 1 explains these fields.
Table 1 Debug Configuration Parameters X(40) or 1 ~ 999999999 For Micro Focus COBOL application programs, DEBUGID is a string that is required for enabling animation in COBOL. It is a character string of up to 40 characters. The string can have alphanumeric characters and underscore. Job name which is to be diagnosed. * means all jobs. COBOL program name which is to be diagnosed. It must be the entry COBOL program name. * means all programs.