I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH).

I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH).

In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.





No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer



More COBOL Interview Questions

If we put three reads in COBOL in the same para one after the other, to read a PS file,will it read the same record thrice or it will read three records sequentially? For example : Input File 01 02 03 Para 900 Read infile Display Infile rec Read infile Display infile rec Read infile Display infile rec. What will be the output?

2 Answers  


what is internal sort and external sort ? which is preferable ?

2 Answers   TCS,


in the TIME parameter we r giving hours r minutes

4 Answers   IBM,


Have you used comp and comp-3 in your project? And how?

0 Answers   IBM,


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

0 Answers  






Write down the divisions of cobol program?

0 Answers  


Should I use STOP RUN in the sub program??why?

6 Answers   Xansa,


I have the file which is having the extension no as records. sample file will look like below. 2310 3410 3256 4350 3781 5408 I need to replace the record which is starting with 3 to 5 (i.e) 3410 to 5410. How can we do it through cobol and cobol-db2 program? I need the possible logic?

5 Answers   RBS,


What is the maximum data length for Numeric DataType ?

3 Answers   Cap Gemini,


Why we are using comp and comp-3 in real time projects?

4 Answers   IBM,


what is the diff b/w select stsmt and cursor ?

2 Answers  


created cluster using IDCAMS ..that is empty ..when i write a program for read using Input ..wil it open the cluster or gives any error?

2 Answers   HCL,





Categories