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
Describe the cobol database components?
What is Pic 9v99 Indicates in COBOL?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is the LINKAGE SECTION used in COBOL?
Write a program to explain size error.
Which division and paragraphs are mandatory for a COBOL program?
In COBOL programming, what is PERFORM? What is VARYING?
Write a program that uses move corresponding.
Write some characteristics of cobol as means of business language.
What guidelines should be followed to write a structured cobol prgm?
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.
what is search and searchall?what is the diffrence between them?give an best example?
How you can read the file from bottom?
Explain about different table spaces.
What is link edit in cobol?