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

help for displaying the records


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bnveena

New User


Joined: 29 May 2007
Posts: 50
Location: hyderabad

PostPosted: Wed Nov 11, 2009 3:21 pm
Reply with quote

Hi ,

I have 3 columns where one is contract number one is the bill-amt and last is tot-amt
contract num bill-amt tot-amt
01 45 67
02 34 56
02 23 23
04 15 12

i want to display in my report first row then totals of the first row if the contract number is same then i want to display the two rows which is having the same contract number and the totals of that row ie for 02 contract number i should display like
02 34 56
02 23 23
02 57 79

can anyone please help me in this regard
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Nov 11, 2009 4:31 pm
Reply with quote

It's pretty much straightforward, simple COBOL statements -- what, exactly, are you having trouble with? And remember, please, this is a HELP forum, not a WRITE-THE-CODE-FOR-YOU forum.

Is this a homework problem?
Back to top
View user's profile Send private message
bnveena

New User


Joined: 29 May 2007
Posts: 50
Location: hyderabad

PostPosted: Wed Nov 11, 2009 4:34 pm
Reply with quote

thnks.... for the reply..... got the solution
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Nov 11, 2009 11:14 pm
Reply with quote

Care to share for the benefit of others?
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 Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts IBM OnDemand Folders displaying to al... IBM Tools 6
No new posts Join multiple records using splice DFSORT/ICETOOL 5
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top