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 / kalone
First load both the files into 2 arrays and then sort them
on say ASC criteria and then take the first element from 1
file and compare with the element of other file , if
matches write into Outfile ,like wise we can keep on
reading & comparing till we get all the matching values in
the outfile.
| Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
Name the divisions, which are available in a cobol program?
explain sorting techniques in cobol program?
What type of SDLC u followed? Why?
How many sections are there in data division in COBOL?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
Which is not true about evaluate statement
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is the difference between next sentence and continue in cobol programing language?
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.
Write a program that uses move corresponding.
How do get the result of your program directly on your pc?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.