Suppose, file A has 100 records and file B has 500 records. We
want to write records common to both A and B into file C and
records which are present only in either A or B into another file D.
What should be the logic of Cobol program to achieve this?

Answer Posted / anji

I think this is partially right. after accessing 100 records
program is abended. And how to send remaining B file records
into file D.. send me ans plz..

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5064


What kind of error is trapped by on size error option?

740


Mention the guidelines to write a structured cobol program?

620


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

717


When is inspect verb is used in cobol?

675






Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

676


What are literals?

632


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

2008


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.

1115


How do you get the data to code the BMS macro?

1476


Explain what you understand by passing by value.

700


what is the difference between COBOL2 AND COBOL390?

2453


What is the LINKAGE SECTION used in COBOL?

889


What is the difference between a binary search and a sequential search what are the pertinent cobol?

735


Differentiate between structured cobol programming and object-oriented cobol programming.

667