sivaraj.ramaraj Currently Banned New User
Joined: 04 May 2007 Posts: 3 Location: softwarew
|
|
|
|
Hello,
While writing the output file , i need to count the header the detail record and trailer record and put the total count in trailer record,
hw will we achieve through a cobol program? |
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You would do that just as you have described.
Define a counter in ws, add to it as records are written, and then move the counter into the trailer record immediately before you write the trailer record.
If this is not what you are looking for, please post more details of your requirement. |
|