is there anyway to give the serial number for the records
It's not clear what you mean by "serial number" or where it would fit into your report. Do you mean "sequence number"? Please explain what you want more clearly. Show an example of the output you want including the "serial number".
1.NO OF EMP RECORDS WITH IPLAN IND 7 = 1215355
2.NO OF DEP RECORDS WITH IPLAN IND 7 = 1675400 2.
3.NO OF EMP RECORDS WITH IPLAN IND 6 = 191698
4.NO OF DEP RECORDS WITH IPLAN IND 6 = 373431
5.NO OF EMP RECORDS WITH IPLAN IND 5 = 1696575
6.NO OF DEP RECORDS WITH IPLAN IND 5 = 2411017
1.NO OF DEP RECORDS FOR CUSTOMER 0002284 = 7200
2.NO OF EMP RECORDS FOR CUSTOMER 0002284 = 3519
3.NO OF DEP RECORDS FOR CUSTOMER 0006472 = 1668
4.NO OF EMP RECORDS FOR CUSTOMER 0006472 = 2096
Please let me know if this explains the requiremet....
Hmmm ... it's been so long, I forgot what we were doing. I guess we're creating trailer records and so you need sequence numbers for the trailer records rather than for the output records. TRAILERx doesn't allow SEQNUM, so I guess you'll have to run the output of the original report back through DFSORT to add the sequence numbers.
So the step to produce the report with the trailer records would have a temp file as its output and you'd use that for input to another step that would have:
or you could leave room for the SEQNUM in the first step with TRAILER3=(5:...) and then use this in the second step: