Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

help for displaying the records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: help for displaying the records
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Wed Nov 11, 2009 4:31 pm    Post subject:
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    Post subject: Reply to: help for displaying the records
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us