I have the requirement to compare the two files and pick up
the matching records.
File 1. file2

23 32
32 13
34 15
35 36
36 35
43

Get the matching records from this 2 files to out file. how
you will do this in cobol program?

Answer Posted / sreejith

firt read file1 move each record to table. at the end of
file1 start read file2. for each record read from file2
compare that record with all the elements from table. if it
match write that record to the output file. same procedure
follow for all the records from file2

Is This Answer Correct ?    16 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe the cobol database components?

886


What is Pic 9v99 Indicates in COBOL?

930


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

856


What is the LINKAGE SECTION used in COBOL?

1188


Write a program to explain size error.

883


Which division and paragraphs are mandatory for a COBOL program?

919


In COBOL programming, what is PERFORM? What is VARYING?

866


Write a program that uses move corresponding.

868


Write some characteristics of cobol as means of business language.

836


What guidelines should be followed to write a structured cobol prgm?

861


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1954


what is search and searchall?what is the diffrence between them?give an best example?

6163


How you can read the file from bottom?

868


Explain about different table spaces.

854


What is link edit in cobol?

940