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

Which division and paragraphs are mandatory for a COBOL program?

1285


How many sections are there in data division in COBOL?

1143


What is length is cobol?

1106


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

868


How do we get current date from system with century in COBOL?

1384


What rules are followed by the search verb.

1127


Why occurs cannot be used in 01 level in COBOL?

1164


how do you reference the esds vsam file formats from cobol programs

1222


How do you reference the fixed block file formats from cobol programs

1235


How do define dynamic array in cobol.

1145


What is the difference between binary search and sequential search?

1096


For rewrite, why is it mandatory that file needs to be opened?

1112


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1412


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2479


How do you get the data to code the BMS macro?

1981