Skip to main content

This article explains why the rebuild command is generating a 191 Terminal type not defined error.

Problem:

The rebuild command in Server Express is a tool that can validate, recover, or convert data files. For a quick start using rebuild, enter rebuild on the command line, with no parameters. It will display a usage screen that summarizes the options. However when we did this, the following error occured:

Execution error : file 'ADIS'

error code: 191, pc=0, call=1, seg=0

191 Terminal type not defined

Why is this?

Resolution:

Rebuild uses the ADIS module for screen I/O. ADIS requires that the TERM environment variable be set to a valid terminfo entry. The solution is to set (and export) the TERM environment variable to a value such as "vt100" or "ansi" or "vt220" or "xterm", or to a value that best represents the terminal emulation of the terminal window currently in use. If you are not certain what value to specify, try "vt100" or "xterm" first as these are the most common. For example:

TERM=vt100

export TERM

rebuild

With TERM set and exported, rebuild will work without this 191 error.

Old KB# 13980

#AcuCobol
#ServerExpress
#COBOL
#netexpress
#RMCOBOL