Posted: Fri Aug 12, 2005 11:01 pm Post subject: Printing total lines on a report
HELP!!! I have tried every ICETOOL coding combination that I could think of. The manual is not really clear on how to print the total number detail lines in a report.
I need to print the total number of detail records preceded by comment in the report on the last line of the report using ICETOOL. The code that I am using is listed below:
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Sat Aug 13, 2005 10:24 am Post subject:
DISPLAY does not have an option for writing a count.
COUNT writes the count to a message in TOOLMSG rather than to a data set.
You have the right idea using TRAILER1, but you need to do it with COPY rather than COUNT. Also you're trying to put all of the output to RPTFILE which won't work. You should put the SORT output to a temp file and use that as the input for DISPLAY. Then you should use MOD for RPTFILE so you can put the output of DISPLAY and COPY to it.
Here's a DFSORT/ICETOOL job that will do what I think you want.
Note that you could actually do this in one pass with DFSORT's OUTFIL reporting features, but that would take a bit more work to set up. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum