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
 
DFSORT : GroupBy

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

New User


Joined: 01 Apr 2016
Posts: 1
Location: India

PostPosted: Fri Apr 01, 2016 3:22 pm    Post subject: DFSORT : GroupBy
Reply with quote

Hello All,

Please suggest how to achieve below desired result using DFSORT.

Input:
------
Code:
XXXXX;111;2014;AAAAA;222;2014; 
XXXXX;111;2014;AAAAA;222;2014; 
XXXXX;111;2014;AAAAA;222;2014; 
ZZZZZ;111;2015;BBBBB;222;2015; 
ZZZZZ;111;2015;BBBBB;222;2015; 
ZZZZZ;111;2015;BBBBB;222;2015; 
ZZZZZ;111;2015;BBBBB;222;2015; 


Output:
-------
Code:
                      2014       2015      
Total Unique
111                   1           0
222                   1           0

Total Count
111                   0           3
222                   0           4



Total Unique --> distinct Count of XXXXX from pos 1 to 15 per year
distinct Count of AAAAA from pos 16 to 15 per year

Total count --> Number of occurances of XXXXX from pos 1 to 15 per year
Number of occurances of AAAAA from pos 16 to 15 per year
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 2088
Location: NY,USA

PostPosted: Sat Apr 09, 2016 9:16 pm    Post subject:
Reply with quote

its not clear what is expected. but what is the problem that you face? There are many similar topics under dfsort forum, please take a look.
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 Need advise in calling DFSORT from REXX ajithajt CLIST & REXX 9 Thu Nov 29, 2018 10:50 am
No new posts How to handle different file length b... javen777 DFSORT/ICETOOL 15 Mon Nov 26, 2018 12:13 pm
No new posts How to count the number of times key ... vnktrrd DFSORT/ICETOOL 14 Thu Nov 15, 2018 9:19 pm
This topic is locked: you cannot edit posts or make replies. DFSORT output in CSV for data spans i... hiravibk DFSORT/ICETOOL 3 Tue Nov 13, 2018 7:55 pm
No new posts Generate and submit JCL and step dyna... vnktrrd DFSORT/ICETOOL 11 Wed Jul 25, 2018 11:31 pm

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