The CDAM exit can add lines to the report by suppressing normal CDAM processing and performing the following:
Inform CDAM (via a return code during the file open) that CDAM should not process the lines but should pass the lines to the exit.
Use dynamic allocation, in this case, without the EXIT parameter being set to YES, to allocate a new CDAM file.
Write records to the newly allocated CDAM file. The records can be the original records written by the application (and passed by CDAM to the exit) and/or they can be new records.
Using this method, the exit can add any number of lines to the report or easily change or suppress lines.