Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / harsha

First merge bothe file.
Use sort card
//Sysin dd *
sort fields=-------
Sum fields=(none,xsum)
/*

File mentioned in SORTXSUM dd name will contain matching
records.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you define single dimensional array and multidimensional array in your cobol?

1044


How do get the result of your program directly on your pc?

2294


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2327


Define static linking and dynamic linking.

1108


I have a File that has duplicate records. I need only those records that occur more than thrice.?

9740


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3205


How do define dynamic array in cobol.

1081


what is difference between cobol and cobol/400

22729


What is perform what is varying?

1111


What is the Purpose of Pointer in the string?

1025


how do you reference the variable block file formats from cobol programs

1181


Write the code implementing the perform … varying.

1011


What is the Purpose of POINTER Phrase in STRING command in COBOL?

1193


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1951


What is the problem of ordered sequential files access?

1108