IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To compare two files, record from file with record in file 2


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sarithakjumla

New User


Joined: 21 May 2010
Posts: 2
Location: mysore

PostPosted: Mon May 24, 2010 9:44 am
Reply with quote

Hi all,


There are 2 files, file1 and file2(both are in sorted order).
we have to compare 2 files such that
1)record present in file1 but not in file2 should be moved to output file1.
2)record present in file2 but not in file1 should be moves to output file2.

how to proceed with this(looping details)?

thanx
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon May 24, 2010 9:47 am
Reply with quote

www.ibmmainframes.com/viewtopic.php?t=22649
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon May 24, 2010 9:47 am
Reply with quote

Hello and welcome to the forum,

At the top of this cobol part of the forum is a tested sample of a 2-file match-merge (which is what you need to do if i understand).

Simply download the attachment and modify for your particulars.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top