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
 
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm

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