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 files that contains both duplicates files(occur more
than twice) and non-duplicate files.The file is already
sorted by a key.I want to determine those records that are
duplicate and will be move to a duplicate file and non-
duplicate files to be move to a valid file.thank you.help
please

Answer Posted / tamilselvan

Instead of cobol, try this with SORT in JCl.it will be
easier.
SORT FIELDS=copy
SUM FIELDS=NONE,XSUM


define a file with DD card SORTXSUM after SORTWK file in
the proc step.
You can capture the duplicate rows in the sortxsum file and
non dupliucates in the SORTOUT file.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What kind of error is trapped by on size error option?

1286


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

3274


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

1641


What is the difference between binary search and sequential search?

1126


What are various search techniques in cobol? Explain.

1106


how to move the records from file to array table. give with code example

2723


What are the different rules for performing sort operation?

1269


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

1292


explain sorting techniques in cobol program?

1236


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

1480


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

1302


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2625


how to refer the data field?

2315


What are the various section in data division and briefly explain them.

1246


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

1267