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

To find the sum of a group in FOCUS


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
aprak00
Warnings : 2

New User


Joined: 09 Aug 2006
Posts: 24

PostPosted: Fri Sep 12, 2008 8:22 pm
Reply with quote

I need to provide the sum of an amount field based on the account number. Please find the sample below:
Data is:
Code:
ACCT NO             POLICY           CERT            AMT
0001                1000             101            10.00
0001                2000             201            20.00
0001                3000             301            15.00
0002                4000             401            05.00
0002                5000             501            15.00

The Report should look like as follows:

Code:
ACCT NO             POLICY           CERT            AMT

0001                1000             101            10.00
0001                2000             201            20.00
0001                3000             301            15.00
                                     TOTAL          45.00

0002                4000             401            05.00
0002                5000             501            15.00
                                     TOTAL          20.00

Is this possble in FOCUS. Could anyone please help me on this?
Back to top
View user's profile Send private message
rajeshramakumar

New User


Joined: 12 Apr 2007
Posts: 1
Location: Hartford

PostPosted: Wed Sep 17, 2008 9:07 pm
Reply with quote

Not sure if this works <no access to test>, you might want to try

PRINT POLICY CERT AMOUNT
BY ACCT NO
ON ACCT NO SUBTOTAL
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Compare latest 2 rows of a table usin... DB2 1
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
No new posts Find a record count/numeric is multip... COBOL Programming 1
Search our Forums:

Back to Top