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
Have you used comp and comp-3 in your project? And how?
Which mode is used to operate the sequential file?
Write some characteristics of cobol as means of business language.
Write a cobol program making use of the redefine clause.
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is the difference between PIC 9.99 and 9v99 in COBOL?
What guidelines should be followed to write a structured cobol prgm?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
Which Search verb is equivalent to PERFORM…VARYING?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
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
Name the divisions, which are available in a cobol program?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
Explain about different table spaces.