I need to compare two VSAM files, both having 'number' as
key. If there is a matching record, write the data into
another VSAM file. How will it be possible.



I need to compare two VSAM files, both having 'number' as key. If there is a matching re..

Answer / mainframe_learner

Declare one VSAM as sequential read and another as random
access. And then try to read the files.

Is This Answer Correct ?    8 Yes 0 No

Post New Answer

More COBOL Interview Questions

Can we MOVE X(9) to 9(9) OR 9(9) to X(9)? If yes what are the ways for doing this?

12 Answers   T systems, Tech Mahindra,


I HAVE FOLLOWING DECLARATION. 02. A PIC X(10) VALUE 'XXXXXXXXXX'. 02. B REDEFINES A. 05. C PIC X(3). 05. D PIC X(3). 05. E PIC 9(3). IN MY PROG, I HAVE MOVE 1 TO E. DISPLAY A. WHAT WILL BE DISPLAYED AS A RESULT OF THIS? PLEASE EXPLAIN THE ANSWER. THANKS.

7 Answers   Amdocs,


What is link edit in cobol?

0 Answers  


TYPES OF SORTINGS. which is more prefarable.

2 Answers   Syntel, TCS,


consider the following PROCEDURE DIVISION entry OPEN EXTEND IN-FILE identify the correct statement a.organization of IN-FILE is sequential and records can be added in the beginning b.organization of IN-FILE is sequential and records can be added in the end c.organization of IN-FILE is indexed and records can be added in the beginning d.organization of IN-FILE is indexed and records can be added in the end

3 Answers   TCS,






How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

0 Answers  


What is diff betn PS and ESDS file? What is the diffrent compiler options in cobol and there discription? What is retrive nth maximum salary from salary DB2 table. Can we redefine COM-3 variable with varchar variable?

4 Answers  


What is the LINKAGE SECTION used for?

4 Answers  


how do you reference the printer file formats from cobol programs

0 Answers  


Which Search verb is equivalent to PERFORM…VARYING?

0 Answers  


if a dataset is already created with fixed length but after that i want to change fixed length to variable length then how is it possible

3 Answers   IBM,


s9(18) comp-3:: What is the size of memory it takes internally?

4 Answers  


Categories