Created On:  19 March 2010

Problem:

Compiling This error occurs while Animating a COBOL program. This error occurs when the user has set the COBTERMINFO environment variable to point to a customized terminfo file.

Resolution:

When running under the control of the Animator any screen output is cached in memory. If you swap to the user screen (i.e. by pressing F2 or by executing an ACCEPT), the contents of the cached screen are displayed. The program has no terminal of its own because it's under the control of the animator. So, when the program writes to the terminal, it is actually passing terminal sequences to the animator to be decoded and cached. The Animator uses a generic terminal definition called 'mfdebug', which defines all the capabilities required This error only occurs if a customer is using a different terminfo directory, or has deleted some files from the Micro Focus provided one. When a process is being debugged by Animator, if the application then has to display a screen, there are of course two screens running; these are referred to as the 'Animator' and 'debuggee' screens. If they share the same terminal, then the TERM setting of the debuggee process is set to "mfdebug".  The application will, therefore, search for an 'mfdebug' terminfo; if the m/ folder and/or the files below it cannot be found in the terminfo structure, this error will occur.

To resolve this error make sure that COBTERMINFO is pointing to the customer terminfo directory then run:

mftic. $COBDIR/terminfo/mfdebug.src

chmod r $COBTERMINFO/m/mfdebug*

This will add the required functionality to the user's terminfo.