Joined: 21 Oct 2008 Posts: 2 Location: Cross Junction, Va
I am looking for suggestions on adding a Report Description page to the end of my DFSORT reports. The description page is text explaining what the report is and explains any fields that may cause confusion to the report user.
Normally I create the DFSORT report and define the outputted report SYSOUT as an &TEMP file. Then I use a second step of IEBGENER to concatenate the report and the description page. see below:
FIX1CNTL is for the COPY operator which produces FIXRPT. The OP wants to add the description to the end of the DISPLAY report. OUTFIL will NOT work with DISPLAY in this case since DISPLAY doesn't allow a USING, and DFSPARM would apply to both the COPY and the DISPLAY.
I would stick with what you're doing, unless you're willing to completely replace the DISPLAY report with an OUTFIL report in which case you could use TRAILER1. But although this would save a pass over the data, I don't think it would be easier than what you're doing now.
Of course, you could make REPORT a MOD data set and add another COPY operator after the DISPLAY operator instead of using a separate IEBGENER step if you want to do everything in one step.