Thanks for the reply, but this is not the problem (although I will keep it in mind). I tried this, and while a window was created, and your code forced it to close at the end, that window is not the one I'm trying to close.
When I start the program, and write to the standard output device (IOUNIT=1) a window is created that contains all the output (and the name 'Output' is the title of the window), and it is used as the echo of manual inputs. This is the window I'm trying to close automatically. I tried to attach logical unit 1 to the window, per your example, but it was not successful in re-directing the output.
I have tried using some other functions, but since I don't have control of the window creation at the beginning, I can't seem to close it.
I admit; I'm new to this environment. That said, there has to be some way to close this window. I've tried closing the logical unit, tried to create a control into the window that I could, via call back, force it to close, and a couple of other things.[img][/img][img][/img]
[img][/img]