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
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is the problem of ordered sequential files access?
What do you understand by psb and acb?
How do define dynamic array in cobol.
How do we get current date from system with century in COBOL?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
What is Pic 9v99 Indicates in COBOL?
What is the difference between Global and External Variables?
example for sub strings ? and refernce modifications whit output pls
What is perform what is varying?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
Describe the cobol database components?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is the use of intialize verb?
What is redefines clause in COBOL?