View previous topic :: View next topic
|
Author |
Message |
saikarthik94
New User
Joined: 04 Sep 2019 Posts: 12 Location: India
|
|
|
|
Hi,
I have a requirement like this -
1 ...
1 ...
1 ...
2 ...
3 ...
4 ...
4 ...
4 ...
4 ...
4 ...
5 ...
I need to extract those records which is repeating - ie my output should be-
1 ...
1 ...
1 ...
4 ...
4 ...
4 ...
4 ...
4 ...
I know i can use XSUM and join the file again to get the repeating data. But the files are too large and takes 30 to 45 mins to execute. Is there any way that can be performed in a single step or any command can be used to extract the repeating records ? |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Suggest you read up on ICETOOL's SELECT.... ALLDUPS.
Garry. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1245 Location: Bamberg, Germany
|
|
|
|
saikarthik94 wrote: |
I know i can use XSUM and join the file again to get the repeating data. |
No, you can't.
From the manual: DFSORT does not support the XSUM parameter provided by a competitive sort product to write records
deleted by SUM processing to a SORTXSUM DD data set.
Topic should be moved to SYNCSORT section. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2018 Location: USA
|
|
|
|
JCL has no abilities to perform ANY manipulations on data.
Nothing at all!
|
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1245 Location: Bamberg, Germany
|
|
|
|
sergeyken wrote: |
JCL has no abilities to perform ANY manipulations on data.
Nothing at all!
|
JCL has recently been upgraded to cater for all these Requirements. *cough* |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3051 Location: NYC,USA
|
|
Back to top |
|
|
saikarthik94
New User
Joined: 04 Sep 2019 Posts: 12 Location: India
|
|
|
|
Apologies for the delay in response -
Thanks Gary, i went thru ICETOOL ALLDUPS as you suggested and i got the result as desired.
Thanks ofr the suggestions - Joerg and sergenken.
Thanks Rohit, those links you provided are very helpful. Will try those. |
|
Back to top |
|
|
|