MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help on SYNCSORT (File Comparison).

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
siddharth
Beginner


Joined: 25 Jul 2003
Posts: 15
Topics: 7

PostPosted: Fri Feb 06, 2004 2:32 am    Post subject: Help on SYNCSORT (File Comparison). Reply with quote

Hello,

I have two files:
File A: Containing 50000 records with record length 400 and with its first 50 bytes being the primary key.

File B: Containing 5 million records with record length 400 and with its first 50 bytes being the primary key.

So, the only difference between the two files is that the data in File A is the subset of the data in File B.

Note: Both the files are not sorted.

Now, If I have to delete/extract all the records from File B which are present in File A, can I do this using SYNCSORT utility??

Please let me know if anyone can help. Thank You.

Regards,
Siddharth.
Back to top
View user's profile Send private message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Fri Feb 06, 2004 3:53 am    Post subject: Reply with quote

Here is a DFSORT/ICETOOL job that will do what you want

Code:

//S1       EXEC PGM=ICETOOL                                 
//OUT1     DD DUMMY                                         
//OUT2     DD SYSOUT=*                                       
//TOOLMSG  DD SYSOUT=*                                       
//DFSMSG   DD SYSOUT=*                                       
//CON      DD DISP=SHR,DSN=INPUT.1                           
//         DD DISP=SHR,DSN=INPUT.2                           
//TOOLIN   DD *                                             
  SELECT FROM(CON) TO(OUT1) ON(1,50,CH) ALLDUPS USING(CTL3)   
/*                                                           
//CTL3CNTL DD *                                             
  OUTFIL FNAMES=(OUT1,OUT2),SPLIT                           
/*                                                           
//                                                           


OUT2 would contain your "file2 records" which are in file1.

Hope this helps...

Cheers,
Coolman.
________
volcano classic review


Last edited by coolman on Sat Feb 05, 2011 1:34 am; edited 1 time in total
Back to top
View user's profile Send private message
siddharth
Beginner


Joined: 25 Jul 2003
Posts: 15
Topics: 7

PostPosted: Fri Feb 06, 2004 4:10 am    Post subject: Reply with quote

Thanks for the response.

But, we cannot use ICETOOL utilities on our application. Is there any way we can do this using SYNCSORT??

Please reply. Thank You.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Fri Feb 06, 2004 5:21 am    Post subject: Reply with quote

siddharth,

Please search before posting. There are many topics which covered the issue of matching the records from 2 files.

http://www.mvsforums.com/helpboards/viewtopic.php?t=11

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group