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 |
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
what will happen if i give program name and member name as different? program runs successful or w'll abend?
what are the working storage fields in BMS macro?
what are the limitations of Inline Perform?
Have you used comp and comp-3 in your project? And how?
What is ASKTIME, SUSPEND
What do you understand by psb and acb?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
In COBOL "BEFORE" advancing is there or not ?
How can we increase the size of an existing PDS to include more no. of modules.
How you can read the file from bottom?
What is the default value(s) for an initialize and what keyword allows for an override of the default?