Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 7223

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 How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us