COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

If you use the WRITE statement to send messages to the console, and therefore to the standard log
file terminal, you can determine the assignment between the file and the device in any one of these
ways:
During program compilation, through the SELECT clause of the FILE-CONTROL paragraph
Before program execution, through the ASSIGN or ADD DEFINE command
During program execution, with the COBOL_ASSIGN_ routine.
If your program consists of modules written in different languages, the modules can share the
standard log file terminal.
For more information about mixed-language programs sharing standard files, see the CRE
Programmer’s Guide.
898 Terminal Input and Output