Skip to main content

Problem:

If the output to STDOUT is redirected to a file or to another program, you won't see any DISPLAY or DISPLAY UPON CONSOLE in the user's terminal.

This will also happen if you are running under a Application Server or Transaction manager like Micro Focus Enterprise Server or IBM TX-Series, etc...

Resolution:

A DISPLAY UPON CONSOLE just uses the standard i/o device.

Please have a look at:

http://support.microfocus.com/Documentation/books/sx50/sx50indx.htm

Bookshelf > Program Development > 15. Device Handling

for a list of devices that you can use with the UPON clause. If the standard output device is redirected externally, you might want to try using SYSERR instead, but that might also be redirected...

cobrun myprog > standardoutputfile 2> standarderrorfile

Old KB# 2227