Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
DISPLAY the record count as different column

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

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Tue May 12, 2015 7:14 pm    Post subject: DISPLAY the record count as different column
Reply with quote

Hello All,
Here is my requirement with tweaked data.
I would like to list out the number of calls made from each caller to each receiver for the current month.

Input:
Code:
Caller      Receiver  Minutes
ABCD1   BGDF1     4:05
ABCD1      BGDF1     2:15
ABDD4   BVFF1     2:85
BVCD4   KDFM1     5:15
CBCD1   DDFF2     3:45


I would like to get the count of the records as a separate column with the similar values in Caller & Receiver fields.

Output:
Code:

Caller       Receiver  Call-Count
ABCD1   BGDF1    2
ABDD4   BVFF1    1
BVCD4   KDFM1    1
CBCD1   DDFF2    1


Please suggest me Which sort trick should we use ?

Code'd
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Tue May 12, 2015 7:35 pm    Post subject: Reply to: DISPLAY the record count as different column
Reply with quote

After 300 posts I'm sure you should know how to use the Code tags and the Preview button.

Use OUTFIL reporting, with NODETAIL,REMOVECC and SECTIONS with TRAILER3 to produce the information you want and the COUNT.
Back to top
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Tue May 12, 2015 7:38 pm    Post subject:
Reply with quote

Hi Bill Wooder,

Sorry for not following the forum rules while posting.

Thanks for giving me the clue. I will use the SECTIONS now.
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 Process only last key record in a fil... Naveen.katkuri24 DFSORT/ICETOOL 8 Tue Oct 09, 2018 9:39 am
No new posts SYNCSORT keep MIN/MAX record Cloink SYNCSORT 16 Mon Sep 17, 2018 3:00 pm
No new posts Merge two files and sum up the count ... preeti6 JCL & VSAM 6 Thu Sep 06, 2018 10:57 am
No new posts Sort card to find duplicates, without... anand1204 DFSORT/ICETOOL 15 Fri Aug 31, 2018 12:13 am
No new posts Splitting one record in a file to 10 ... mf_123 DFSORT/ICETOOL 9 Tue Aug 21, 2018 8:51 pm

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