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
Differentiate between structured cobol programming and object-oriented cobol programming.
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What are the pertinent COBOL commands?
how do you reference the fixed unblock file formats from cobol programs
What kind of error is trapped by on size error option?
Write a program to explain size error.
How do you get the data to code the BMS macro?
what is the difference between COBOL2 AND COBOL390?
Explain what you understand by passing by value.
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
How to use the same COBOL program in Batch and CICS on lines? explain with an example
In which area will you utilize 88 level items in cobol?
Can we change the password using ALTER? anyone tried and changed?
Name some of the examples of COBOl 11?
What is difference between static and dynamic call in cobol?