IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Trailer count in cobol program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sivaraj.ramaraj
Currently Banned

New User


Joined: 04 May 2007
Posts: 3
Location: softwarew

PostPosted: Mon Sep 03, 2007 3:11 pm
Reply with quote

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?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Sep 04, 2007 10:03 pm
Reply with quote

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts To get the count of rows for every 1 ... DB2 3
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top