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
Explain how to differentiate call by context by comparing it to other calls?
What is static and dynamic call in cobol?
how do you reference the printer file formats from cobol programs
What is cobol?
Write a program to explain size error.
What rules are followed by the search verb.
What is the difference between Global and External Variables?
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...)
i want a program using by if, evaluate , string, unstring, perform, occurs?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
In COBOL programming, what is PERFORM? What is VARYING?
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.
Name the sections present in data division.
How are the next sentence and continue different from each other?
Write a cobol program making use of the redefine clause.