Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Need to sum the values when a duplicate record found

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
pavanakar

New User


Joined: 06 Feb 2014
Posts: 1
Location: india

PostPosted: Thu Aug 21, 2014 1:25 pm    Post subject: Need to sum the values when a duplicate record found
Reply with quote

Hello forum,

I have a requirement below by using SORT utility.

Input:

office cust-no pages
AA 0001 2
AA 0001 3
BB 0002 5
BB 0003 1

Output:

office cust-count pages
AA 01 5
BB 02 6

--------------------------------

So i want sum the page numbers for each cust-count and count the record .
Back to top
View user's profile Send private message

Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7312
Location: Inside the Matrix

PostPosted: Thu Aug 21, 2014 1:38 pm    Post subject: Reply to: Need to sum the values when a duplicate record fou
Reply with quote

What have you tried? What problems did you encounter? What is that 01 and 02 in your output?
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Abend deletes last record written julietspringsteen ABENDS & Debugging 10 Fri Aug 21, 2020 7:45 pm
No new posts a copybook getting improper values in... Mahammad Musthafa COBOL Programming 7 Sat Jul 18, 2020 12:58 am
No new posts Problem getting record length of a re... amitc23 COBOL Programming 2 Thu Jul 02, 2020 10:52 pm
No new posts How to fetch the latest record from a... Dinesh Mani DFSORT/ICETOOL 8 Tue Jun 02, 2020 5:34 pm
No new posts JDBC Driver -Default Values yogi.47eie DB2 1 Mon May 18, 2020 7:27 pm

Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us