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
Name the divisions, which are available in a cobol program?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is the Purpose of Pointer in the string?
What is a scope terminator give example?
How arrays can be defined in COBOL?
explain sorting techniques in cobol program?
How do you get the data to code the BMS macro?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
How many sections are there in data division in COBOL?
What are declaratives and what are their uses in cobol?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
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.
Explain about different table spaces.
What are the different rules of SORT operation?