Interspersing output when C is the main routine

To intersperse output from C and COBOL when the main routine is in C, compile your COBOL program with the default OUTDD (OUTDD=SYSOUT) if you are using the default MSGFILE ddname. If you have overridden the default MSGFILE ddname, you must compile your COBOL program using an OUTDD that specifies the same name as the MSGFILE. You must redirect stdout to stderr for the main C routine.