Wolfgang,
Using DISPLAY commands in COBOL are not as bad as they used to be. They are converted to WRITEQ TD and written out the the CEEMSG queue. The problem is that LE writes dumps and messages to that queue as well so you might have to scan through a bunch of other messages to find what you are looking for.
I worked with a customer in the past where we wrote a general purpose module to handle logging. We allowed different applications groups to own their own Extra Partition Queue, and created a program that had a standard message header that indicated the program that wrote the message. We used a message indicator to identify informational messages versus error messages.
We found that it ended up being over used in some environments, so we added logic so the messages could be turned off in a Production environment and would require system programmer manual intervention to allow messages to appear for short periods of time in Production.
We also found that collecting trace when issues occur was helpful in find the problems. Hope that helps!
Regards,
Ezriel
------------------------------
Ezriel Gross
Rocket Software
Waltham NJ
17816842672
------------------------------