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 / anil t.
Using Merge
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What guidelines should be followed to write a structured cobol prgm?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
What are literals?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
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
Can we change the password using ALTER? anyone tried and changed?
what is search and searchall?what is the diffrence between them?give an best example?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
how to access the file from prodution from changeman tool and to submit a file to production
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What are the different data types in cobol?
How you can read the file from bottom?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
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.