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

identical records in 2 files?


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

New User


Joined: 29 Apr 2004
Posts: 8
Location: Chennai(Madras)

PostPosted: Mon May 03, 2004 2:55 pm
Reply with quote

what is the best method to pick the identical records from two files and writing them ( only the identical records) in a new file ?please give the sample program .
Back to top
View user's profile Send private message
bluebird

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Mon Jun 07, 2004 4:37 pm
Reply with quote

IBM sort utility can do that with this sysin :
Code:

sort fields=(st,end,ch)
sum fields=none
Back to top
View user's profile Send private message
ammu

New User


Joined: 10 Jun 2004
Posts: 3
Location: chennai

PostPosted: Thu Jun 10, 2004 5:36 pm
Reply with quote

dear friends,
u r writing a program to read/write/rewrite records onto a file(seq-seq). u write 5 records(say),read them,also rewrite them, but if u again wanna add few more records without changing the coding how can u do friends?suppose if v give a seperate option as "APPEND PARA" --"DO U WANNA ADD RECORDS?" then how do the compiler know that ?
plz... respond me soooon.
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 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
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top