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 to move the records from file to array table. give with code example

2729


What rules are to be followed while using the corresponding options?

1125


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

1381


What type of SDLC u followed? Why?

2048


What is the difference between Global and External Variables?

1434


Why occurs cannot be used in 01 level in COBOL?

1204


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

3317


In which area will you utilize 88 level items in cobol?

1210


What is static and dynamic call in cobol?

1115


What is link edit in cobol?

1269


How can you get the ksds file records into your cobol program?

1135


Have you used comp and comp-3 in your project? And how?

2520


What are the different rules for performing sort operation?

1279


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

2064


What is difference between static and dynamic call in cobol?

1465