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 change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

3234


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

1109


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1355


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

1240


Explain the configuration section of a cobol program with examples of syntax.

1197


Discuss about changing dataset name in proc.

1235


) How do u handle errors in BMS macro

2051


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

1153


) how do u code after getting data?

2152


How are the next sentence and continue different from each other?

1295


Differentiate between structured cobol programming and object-oriented cobol programming.

1149


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5744


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2132


What is the utilization of copybook in cobol?

1191


What are the different rules of SORT operation?

1140