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
how do you reference the ksds vsam file formats from cobol programs
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
How many sections are there in data division in COBOL?
State the various causes of s0c1, s0c5 and s0c7.
how to convert the recors form vsam file to db2 table tru file aid
What is a scope terminator give example?
how do you reference the variable block file formats from cobol programs
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Can we change the password using ALTER? anyone tried and changed?
what is amode(24), amode(31), rmode(24) and rmode(any)?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What do you understand by psb and acb?
What is link edit in cobol?
What are the different rules to perform a Search?
What is the difference between perform … with test after and perform … with test before?