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

Explain how to differentiate call by context by comparing it to other calls?

683


What is static and dynamic call in cobol?

590


how do you reference the printer file formats from cobol programs

654


What is cobol?

741


Write a program to explain size error.

669






What rules are followed by the search verb.

631


What is the difference between Global and External Variables?

660


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1921


i want a program using by if, evaluate , string, unstring, perform, occurs?

4046


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

654


In COBOL programming, what is PERFORM? What is VARYING?

668


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1776


Name the sections present in data division.

697


How are the next sentence and continue different from each other?

760


Write a cobol program making use of the redefine clause.

726