Capturing C++ output to stdout
To redirect
stdout
to the Log window, issue the
following command: SET INTERCEPT ON FILE stdout ;
With
this SET
command, you will not only capture stdout
from
your program, but also from interactive function calls. For example,
you can interactively use cout
on the command line
to display a null terminated string by entering: cout << sptr ;
You
might find this easier than using LIST STORAGE
.For CICS® only, SET
INTERCEPT
is not supported.