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: 7306

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 Record Not found in AlX but record re... mukun264 COBOL Programming 2 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm


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