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
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What is comp-1 and comp-2?
State the various causes of s0c1, s0c5 and s0c7.
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
Write the code to count the sum of n natural numbers.
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
What is the difference between PIC 9.99 and PIC9v99?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
Describe the cobol database components?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What is the difference between Global and External Variables?
explain sorting techniques in cobol program?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
When is inspect verb is used in cobol?