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

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
mainframe5
Active Member
Posts: 59
Joined: Tue Jul 24, 2007 7:25 pm

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

Post by mainframe5 » Tue Mar 18, 2008 8:16 pm

two input file read and compare the file and copy to third output file plesae give me a logic (example)

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Wed Mar 19, 2008 9:49 am

Give more details.

sai
Member
Posts: 7
Joined: Tue Mar 18, 2008 3:26 pm

Post by sai » Sat Mar 22, 2008 2:20 pm

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

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others