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

What does MAXCC 3 means? It is used in one my codes.

2 Answers   Wipro,


is it possible to rename 01 level?

4 Answers  


how can we get current dat and time thru cobol pgm

3 Answers   DELL,


ID DIVISION. PROGRAM-ID. PLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 VAR1 PIC 9(2). 01 VAR2 PIC X(2). PROCEDURE DIVISION. ACCEPT VAR2. MOVE VAR2 TO VAR1. STOP RUN. if i give 'PI' in var2 then what will b output of progr. any abend?????

6 Answers   TCS,


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

0 Answers   Valtech,






I had 100 records and i want to execute last three records by using cobol programming?what will be coding?

4 Answers   IBM,


how many divisions are there in cobol

3 Answers   ADP,


What is a report item?

0 Answers  


What is EIBCALEN? Why it is used?

9 Answers   ADP,


Can we change the password using ALTER? anyone tried and changed?

0 Answers   IBM,


I have dataset DS1 which has records say 1 2 3 4 5 ... ... etc And also I have second dataset DS2 whcih has records 1 3 4 5 6 8 .. ... Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.

4 Answers   FIS, Wipro,


what is the difference b/w level no.01 & level no.77?

3 Answers   HCL,


Categories