Hello
I have the following file :
custno balance intacc intassed branch number
11111 150 40 50 98196
22222 150 30 40 98197
33333 200 80 70 98196
44444 300 90 90 98196
My output should be with sum of balance, sum of int=(intacc-intassed) for each branch (number). Is this possible using sort using SUM fileds .
thanks
Is this possible using Sort program
Moderators: Frank Yaeger, Moderator Group
-
- Member
- Posts: 2
- Joined: Wed Jun 01, 2016 6:54 am
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
Well, you'll need to SORT on branch, so that leaves SUM as an easy option, but I think still better to use OUTFIL reporting features, REMOVECC,NODETAIL and SECTIONS with TRAILER3. SORT will take care of the field-sizes, with SUM you have to do that yourself (extending the fields in INREC if they may be going to overflow).
-
- Member
- Posts: 2
- Joined: Wed Jun 01, 2016 6:54 am
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page