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
What is the difference between Call and a Link?
Why occurs cannot be used in 01 level in COBOL?
How do you reference the fixed block file formats from cobol programs
Which Search verb is equivalent to PERFORM…VARYING?
What are the different rules of SORT operation?
what is search and searchall?what is the diffrence between them?give an best example?
What type of SDLC u followed? Why?
What is length is cobol?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
Write the code to count the sum of n natural numbers.
What is the default value(s) for an initialize and what keyword allows for an override of the default?
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
What is the use of intialize verb?
how do you reference the esds vsam file formats from cobol programs
What is the Purpose of Pointer in the string?