How do I get Visual COBOL runtime to accept a blank or generic TERM environment variable?
All of our COBOL programs run on Linux with no user session (started by cron or other daemon processes). All of these programs have stdout redirected to log files and use the "DISPLAY" statement to put info into the log files.
Most of this works fine, but in a few cases (and I cannot see anything special about the DISPLAY statements) I get a message like
com.microfocus.cobol.program.COBOLRuntimeException: 191 Terminal type not defined [ts236h (while in native code - see cause for more information)]
There is no TERMINAL per se, so I just want the DISPLAY the string.
The last line in the log file before the error is from this source line
display 'values returned to topend: ' out-detail-tbl.
where out-detail-tbl look like.
05 dtl-div-nr pic x(3).
05 dtl-div-name pic x(31).
05 dtl-div-ltr pic xx.
05 dtl-reg-id pic xx.
this DISPLAY occurs in a loop which should occur 19 times, but only occurs once.
If I run the program (unchanged) from Linux logon session instead of launching it from the daemon , it works.