I have the requirement to compare the two files and pick up
the matching records.
File 1. file2
23 32
32 13
34 15
35 36
36 35
43
Get the matching records from this 2 files to out file. how
you will do this in cobol program?
Answer Posted / sreejith
firt read file1 move each record to table. at the end of
file1 start read file2. for each record read from file2
compare that record with all the elements from table. if it
match write that record to the output file. same procedure
follow for all the records from file2
Is This Answer Correct ? | 16 Yes | 12 No |
Post New Answer View All Answers
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is static and dynamic call in cobol?
What is redefines clause in COBOL?
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 is the problem of ordered sequential files access?
How many sections are there in data division in COBOL?
What is the difference between structured cobol programming and object alternativelyiented cobol?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
Can we redefine the field of x(200) to less than 200?
What is a report item?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
How arrays can be defined in COBOL?
) How do u handle errors in BMS macro?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?