When PGM=COMP2 is executed, the Copyright, the Comparison command and the Comparison result are output.
We want to output only the Comparison result when the PGM=COMP2 was executed.
Is it possible to remove the Copyright and the Comparison command output from the joblog ?
You can divide the Copyright, the Comparison command and the Comparison results by using the DDNAME=SYSOUT in the REPORT command, and add the SYSOUT DD SYSOUT=* statement in the JCL.
As a result, the Copyright and the Comparison command are output in the SYSPRINT DD. And, the Comparison result is output the SYSOUT DD.
If you change the SYSOUT=* of SYSPRINT DD to DUMMY, you can remove the the Copyright and the Comparison command from joblog.
DDNAME=SYSOUT <<== Add this.
For more information, please see the Chapter 9. Using Comparator II of CA-Librarian User Guide.