Read filea And file b write the same records in both files?
Records in a but not in b record in b but not in a

Answer Posted / ram g

we can achieve this through jcl icetool utility..

but in cobol its not that easy but possible...

consider the scenario...

file 1 file2
5 2
4 1
6 9
1 4

considering this flat seq file:
here the files are not sorted in order and need not be..
so we should take first record from file1 and match with
all the four records in file2 it should continue for end of
file and do the same for file2. can use array logic.
sorting logic in cobol wont be useful here..

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of intialize verb?

860


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2836


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

773


How do you reference the fixed block file formats from cobol programs

803


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

943






How do you differentiate between cobol and cobol-ii?

753


Difference between array and sub-script ?

1251


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1784


Write the code implementing the perform … varying.

722


In COBOL, what is the different between index and subscript?

851


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

720


What are the different data types in cobol?

902


What is link edit in cobol?

858


Write some characteristics of cobol as means of business language.

708


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

844