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
 

 

Retreiving all dup records in SORT

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

New User


Joined: 19 Dec 2005
Posts: 7
Location: Chennai

PostPosted: Mon Dec 19, 2005 9:52 am    Post subject: Retreiving all dup records in SORT
Reply with quote

Hi,
My name is Kris 'Hi' to all users and Thanks to Forum Administrator.

We are using SYNCSORT in our work shop. We have a request to process more than 50 million records. The requirement is:

For all Duplicate records from an input file, apply corrections.
I have 2 solutions in my mind one is using

1). SORT based on key and COBOL to determine non-duplicates
The only issue we are facing is Job execution time

2). Using SORT only

I remember the SUM FIELDS=NONE,XSUM option will produce records
eliminated by NONE option but I can't get first record from Duplicate set..

Ex:

Input Key
AAAAA XXXXX
AAAAA XXXXX
BBBBB BBBBB
CCCCC CCCCC
CCCCC CCCCC

SORTXSUM DD OUTPUT

AAAAA XXXXX
CCCCC CCCCC

Still my preference is using SORT alone. Could you suggest me the right solution?
Back to top
View user's profile Send private message

pushpagiri

New User


Joined: 07 Jul 2005
Posts: 51

PostPosted: Mon Dec 19, 2005 11:37 am    Post subject:
Reply with quote

Hi Kris,

Quote:
I remember the SUM FIELDS=NONE,XSUM option will produce records
eliminated by NONE option but I can't get first record from Duplicate set..


Does this mean the following:
Code:
INPUT:
AAAABBBB
AAAABBBB
AAAABBBB
SSSSDDDD
CCCCCCC
CCCCCCC

REQUIRED OUTPUT:
AAAABBBB
AAAABBBB
AAAABBBB
CCCCCCC
CCCCCCC


that is,you need duplicates along with the parent record ?
Back to top
View user's profile Send private message
pushpagiri

New User


Joined: 07 Jul 2005
Posts: 51

PostPosted: Mon Dec 19, 2005 12:00 pm    Post subject:
Reply with quote

Hi Kris,

Try this code and let the forum know if there is any issue.(correct me if am wrong)

Code:
//DFSORT   EXEC PGM=ICETOOL                         
//TOOLMSG  DD SYSOUT=*                             
//DFSMSG   DD SYSOUT=*                             
//IN1 DD DSN=infile,DISP=SHR             
//OUT1 DD DSN=outfile,DISP=SHR             
//TOOLIN   DD *                                     
    SELECT FROM(IN1) TO(OUT1) ON(1,10,CH) ALLDUPS   
/*       
Back to top
View user's profile Send private message
kris_chennai

New User


Joined: 19 Dec 2005
Posts: 7
Location: Chennai

PostPosted: Mon Dec 19, 2005 1:31 pm    Post subject:
Reply with quote

can u pls suggest using SYNCTOOL? We don't have ICETOOL in our work shop.
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 Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


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