|
View previous topic :: View next topic
|
| Author |
Message |
shchan
New User
Joined: 06 Jun 2007 Posts: 58 Location: Hyderabad
|
|
|
|
Hi,
My requirement is as follows:
Have to read two files File1,File2
Read an account from File2 and search it in File1.
If this account is not present in File1 then write it to another file.
Can somebody suggest how this can be accomplished??
Apat from a Cobol program |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
search the forums for ( for example ) sort file match,
You will find many, many examples for file matching situations,
both for DFSORT or SYNCSORT |
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
| Or if it's a COBOL problem, there is sticky (2-File Match/Merge sample code ) in the Mainframe COBOL part of the forum -- have a look. |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
Anuj, Pay attention or it's 100 lines for you
| shchan wrote: |
Can somebody suggest how this can be accomplished??
Apat from a Cobol program |
|
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
LOL -- that's why I did not like my manager to come to my seat... My instincts just don't listen to me and mind gets switched off...  |
|
| Back to top |
|
 |
|
|