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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sowjanya
using jcl,
//ddname1 <- input file
//ddname2 <- outfile1(no duplicates)
//xsum <- outfile2 (duplicate)
//sysin dd *
sort fields=copy
sumfields =none,xsum
/*
Is This Answer Correct ? | 4 Yes | 1 No |
In INITIALIZE what is Repalcing Word will do
Write the syntax of a two dimensional array?
How to read a record from bottom of a file which is indexed by 'A'.
A table has two indexes defined. Which one will be used by the SEARCH?
What is difference between comp & comp-4?
I try to use some column names in my cobol progorm but these column not in db2 table ..when do i get error ..while bind time or runtime?
How to open and see copy book ?
In COBOL, what is the different between index and subscript?
0 Answers TryTechnicals Pvt Ltd,
which is better either static call or dynamic call? and why?
What is length is cobol?
There are two flat files one having 10 records and other having 5 records. write a cobol pgm to find the duplicate records(matching records)from both files.
How do you get the data to code the BMS macro?