I have two sequential files, FILE-1 and FILE-2.
FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns
(C,D,E).I want an output file, FILE-3 which has all five
columns with duplicates eliminated from column A.

Answers were Sorted based on User's Feedback



I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains ..

Answer / sandeep

merge the colums.

Is This Answer Correct ?    3 Yes 0 No

I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains ..

Answer / gupta

Merging of file in this manner can be done by Splice function of ICETOOL, and also duplicates can be removed.this is the easiest way..

Is This Answer Correct ?    3 Yes 0 No

I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains ..

Answer / gech

How do we merge without the defining the key?
is this just 1 is to 1 and all 5 fields are to be the key
to determine the duplicate?
so therefore my answer is "the question is incomplete".

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More COBOL Interview Questions

What are the different ways to run a COBOL DB2 program using JCL?

2 Answers  


What is cobol?

0 Answers  


How to define variable 9(20) in COBOL, because compiler does not allow us to declare variables with Pic 9(18). Can anyone please let me know the answer... I know one answer to this question which is to use Compiler option Arith (Extend) during Compilation. It extends the maximum limit to 9(32)..Just wanted to know if there is any other way to extend this?

4 Answers   CSC, TCS,


what is a load module ?

3 Answers   TCS,


what is index and how to use two tables using index?

1 Answers  






whats the disadvantage of search all over search?

4 Answers   Patni, TCS,


what is amode(24), amode(31), rmode(24) and rmode(any)?

0 Answers  


Can anyone explain me CALL procedure in COBOL.Does it carries similarities like call by reference in C.

1 Answers  


can we use variable picture clause as xx.99 in cobol.

3 Answers  


Suppose i want to declare a binary comp fild of 7 byte .how to write?

6 Answers   IBM,


How do you code Cobol to access a parameter that has been defined in JCL?

3 Answers  


what is the minimum number of lines a Cobol program should have to successfully compile and run

11 Answers   ABC, Societe Generale,


Categories