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

Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1318


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

1250


What are the different types of condition in cobol and write their forms.

1110


How do you define a variable of comp-1 and comp-2?

1199


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

1182


What is the use of intialize verb?

1243


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1224


Write a program to enter and display the names of students in a class using the occurs clause.

1202


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17871


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1337


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1532


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

6576


Difference between array and sub-script ?

1654


What is the usage of comp fields in cobol?

1178


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

1111