View previous topic :: View next topic
|
Author |
Message |
Pavan101
New User
Joined: 09 Mar 2009 Posts: 13 Location: Bombay
|
|
|
|
Hi All,
I have to read two input files simultaneously through cobol program so plz let me know how can i do it.
|
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
If you explain the process (is this a match-merge, match-delete, match-compare....)
someone can help you.
there is also a 'STICKY' in the COBOL forum about reading two files in a COBOL program |
|
Back to top |
|
|
Pavan101
New User
Joined: 09 Mar 2009 Posts: 13 Location: Bombay
|
|
|
|
Hi
I want to read a one input file and one temporary file which i took as a copy of output file , then i want to match records and write in to the output file
|
|
Back to top |
|
|
Succor
New User
Joined: 20 Feb 2009 Posts: 96 Location: Bangalore :)
|
|
|
|
Pavan101,Do you actually want to achieve this through a program, as from the description of your requirement
Quote: |
one temporary file which i took as a copy of output file |
it looks as if it is a one time requirement.
Are there certain fields on which you want to match the records or its one record in whole u want to compare, you can use an easytrieve ,JCL sort JOINKEYS or a buch of options which Dbz has suggested.
WTF |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello Pavan and welcome to the forum,
The best way for you to get help is to post some sample records from both files and the output you want when those exact sample records are processed. You need to identify the "keys" you want to use to compare and you need to show how duplicates should be handled as well as keys that are in one file but not the other.
Once you provide proper info, someone will be able to make a more useful suggestion. |
|
Back to top |
|
|
|