IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DISPLAY the record count as different column


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Tue May 12, 2015 7:35 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts To get the count of rows for every 1 ... DB2 3
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
Search our Forums:

Back to Top