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
 
Compare 2 files with almost 6 million records in master file

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

New User


Joined: 20 Jun 2006
Posts: 9

PostPosted: Sun Apr 22, 2007 9:56 am    Post subject: Compare 2 files with almost 6 million records in master file
Reply with quote

Hi,

Can anyone help me with this?

Requirement:

I have 2 files:


Master file:

A123XXXXXXXXXXXX
A453FFFFFFFFFFFFFFFF
B123OOOOOOOOOOO
B456PPPPPPPPPPPPPP
C765BBBBBBBBBBBB
C321GGGGGGGGGGG



FILE2:
A123TTTTTTTTTTTTT
D432HHHHHHHHHHH
D123FGRDLLLLLLLLL


OUTPUT FILE SHOULS BE

A123TTTTTTTTTTTTT
A453FFFFFFFFFFFFFFF
B123OOOOOOOOOO
B456PPPPPPPPPPPPP
C765BBBBBBBBBBB
C321GGGGGGGGGG
D432HHHHHHHHHHH
D123FGRDLLLLLLLLL




RECORD LENGHT FOR BOTH FILES IS 43;
1 -4 COLUMNS ARE THE KEY FILEDS.


COMPARE THE 2 FILES;

FOR MATCHING KEYS, REPLACE THE RECORDS FROM FILE2.
FOR NON MATCHING KEYS IN MASTER FILE, RETAIN THE RECORD
FOR NON MATCHING KEYS IN FILE2, ADD THE RECORD TO MASTER FILES.

there will be almost 6 million records in master file and 2 million in file2.

Thank you.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Apr 23, 2007 5:39 am    Post subject:
Reply with quote

Hello,

Have you looked at the Smart DFSORT Tricks paper at:
http://www.ibm.com/servers/storage/support/software/sort/mvs/tricks/

If you look at the section on "Create files with matching and non-matching records", there is info that may help you.

If, after reading the "tricks", you have questions, please post what you want clarification about.
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm

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