Page 1 of 1

two input file read and compare the file and copy to output

Posted: Tue Mar 18, 2008 8:16 pm
by mainframe5
two input file read and compare the file and copy to third output file plesae give me a logic (example)

Posted: Wed Mar 19, 2008 9:49 am
by Krishna
Give more details.

Posted: Sat Mar 22, 2008 2:20 pm
by sai
hi
i can give you hint for ur question
first we have to take two input files and one outputfile
select infile assignto ****,select infile1 assing to****
select outfile assign to****
organization clause i s sequential......access mode is sequential
open input infile
open input infile1
read infile at end display 'not found'
read infile1 at end display 'not found'
close infile
close infile1
or u can write open infile, and open infile1 separate separately
then u have t compare with if statement
and so on...... here u hadn't mentioned wht to compare i think we have to take third file as array so this is up my mark rest u can try if any thing went wrong plz correct me.
thank you