Skip to main content

This article explains an undefined terminal 191 error when running a job in the background.

Problem:

When running a job in the background we receive the error 191 (Terminal Type Not Defined) returned. Why is this?

Resolution:

On UNIX when running a job in the background there isn’t a terminal present, so you cannot executes any COBOL DISPLAY statements. If the COBOL program does not contain any DISPLAY statements then remove the CONSOLE IS CRT statement from the ENVIRONMENT DIVISION. The CRT clause causes the runtime to attempt to initialization a terminal.

Old KB# 14837