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

Comparision of records in KSDS files and getting output


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

New User


Joined: 25 Jul 2008
Posts: 5
Location: pune

PostPosted: Fri Jul 25, 2008 5:37 pm
Reply with quote

Hi,

There are two files like

File1 file2
acc bal acc bal
1 256 2 555
3 254 3 254
4 259 4 315
5 658 7 586

now i have to compare these two files on the basis of "acc no." such that the new file should contain all the "acc no." except those whose whole data is same.

can you help it out?
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: Fri Jul 25, 2008 9:12 pm
Reply with quote

Hello Sahil Mohta and welcome to the forums,

Near the top of the COBOL part of the forum is a "Sticky" that contains working sample code for a 2-file match/merge.

With minor modifications, this code will work for your requirement.

Go to the Sticky, right-click/save as the code and put it on your system.

If you have questions, post them here and womeone will be able to help.
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 Write line by line from two files DFSORT/ICETOOL 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
Search our Forums:

Back to Top