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
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.
What kind of error is trapped by on size error option?
Mention the guidelines to write a structured cobol program?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
When is inspect verb is used in cobol?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
What are literals?
Have you used comp and comp-3 in your project? And how?
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.
How do you get the data to code the BMS macro?
Explain what you understand by passing by value.
what is the difference between COBOL2 AND COBOL390?
What is the LINKAGE SECTION used in COBOL?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Differentiate between structured cobol programming and object-oriented cobol programming.