If there are two files one with 100 records and other with
101 records. we have to find out the one record that is the
odd man out . What are the steps to do it
Answer Posted / kamal
Hi Presannakumar,
We can't compare two files in dfsort.so u first u merge two files and using dfsort in dfsort some fields equal to none means its coming avoid the duplicates,so we can give extra xsum the particular extra record will store xsum dataset.
sync sort we can esily match.
in cobol program matcing logic program we can use and find.
read 2 file at end.
if eno = eno1
move eno to eno3
write rec
if eno > eno1
perform first-para read
write another file
if eno < eno
perform second-para read
write another file.
now the particular record presend in another file.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How do u write test cases?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
how do you reference the ksds vsam file formats from cobol programs
What is static and dynamic call in cobol?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is a SSRANGE and NOSSRANGE?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What is Pic 9v99 Indicates in COBOL?
Explain how to differentiate call by context by comparing it to other calls?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc