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
What kind of error is trapped by on size error option?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What is the difference between goback, stop run and exit program in cobol?
What is the difference between binary search and sequential search?
What are various search techniques in cobol? Explain.
how to move the records from file to array table. give with code example
What are the different rules for performing sort operation?
What is the difference between structured cobol programming and object alternativelyiented cobol?
explain sorting techniques in cobol program?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
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?
how to refer the data field?
What are the various section in data division and briefly explain them.
What is the utilization of copybook in cobol? Could we utilize a similar copybook?