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

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 Select numeric portion from CHAR data... balaji81_k DB2 1 Sat Aug 19, 2017 1:51 am
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts Display upon console bipinpeter COBOL Programming 1 Thu Jun 22, 2017 12:35 am


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