If you want your report to contain the overall statistics page, but not the actual data lines, you can add OUTFIL's NODETAIL parameter to your OUTFIL statement. NODETAIL tells DFSORT to process the data records in the usual way, but not to write them to the report data set.
If you do not want the ANSI carriage control characters in your report, you can add OUTFIL's REMOVECC parameter to your OUTFIL statement. REMOVECC tells DFSORT to remove the carriage control character from the first byte of each record. As a result, the data starts in column 1 of the report rather than in column 2.
OPTION COPY
OUTFIL FNAMES=BRANCHCT,NODETAIL,REMOVECC,
TRAILER1=(COUNT=(TO=ZD,LENGTH=10))
OUTFIL FNAMES=CURDT,NODETAIL,REMOVECC,
HEADER1=(DATENS=(DM4))
0000000012
15072004