You can redirect standard streams in the following ways:
- From the freopen() library function call
- On the PARM parameter of the EXEC used to
invoke your C or C++ program
- Using DD statements
Because the topic of JCL statements goes beyond the scope of this information, only simple
examples will be shown here.