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...

If there are two files one with 100 records and other with
101 records. we have to find out the one record that is the
odd man out . What are the steps to do it

Answer Posted / kamal

Hi Presannakumar,
We can't compare two files in dfsort.so u first u merge two files and using dfsort in dfsort some fields equal to none means its coming avoid the duplicates,so we can give extra xsum the particular extra record will store xsum dataset.
sync sort we can esily match.

in cobol program matcing logic program we can use and find.
read 2 file at end.
if eno = eno1
move eno to eno3
write rec
if eno > eno1
perform first-para read
write another file
if eno < eno
perform second-para read
write another file.
now the particular record presend in another file.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a binary search and a sequential search what are the pertinent cobol?

1196


Explain how you can characterize tables in cobol?

1111


Which Search verb is equivalent to PERFORM…VARYING?

1102


i need a small 3d program using inline and outline.

2259


What is a report item?

1193


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2640


What is amode(31)

1214


In COBOL programming, what is PERFORM? What is VARYING?

1205


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

10005


What is the difference between binary search and sequential search?

1128


What are the cobol coding sheets?

1353


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2514


What is the difference between goback, stop run and exit program in cobol?

1642


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1214


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

1605