Portal | Manuals | 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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7312

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 IDMS record copybook Susanta IDMS/ADSO 2 Mon Feb 24, 2020 8:55 pm
No new posts Not able to view the values of variab... sattar_engg CA Products 1 Thu Jan 23, 2020 12:32 pm
No new posts Include current & next records if... Manny Rizal DFSORT/ICETOOL 22 Mon Dec 30, 2019 9:14 am
No new posts SMF Record layout upendrasri DFSORT/ICETOOL 10 Mon Dec 16, 2019 11:31 am
No new posts Sort to construct single record from ... Deepti_R SYNCSORT 3 Wed Nov 13, 2019 12:14 am

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