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
What is the use of intialize verb?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
How do you reference the fixed block file formats from cobol programs
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
How do you differentiate between cobol and cobol-ii?
Difference between array and sub-script ?
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.
Write the code implementing the perform … varying.
In COBOL, what is the different between index and subscript?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
What are the different data types in cobol?
What is link edit in cobol?
Write some characteristics of cobol as means of business language.
Why is it necessary that file needs to be opened in I-O mode for REWRITE?