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 |
wht is load module and object module ?
Write the code to count the sum of n natural numbers.
What are the different open modes available in cobol?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
)what is retrieve?
Minimum how many Number of Paragraphs are there in ID- Divison?
What is the reference modification.
Can you please let me know the centre name of INS certification in Kolkata.
can we use COPY statement in w-s section? how?
what is label record is standard or omitted in file description of data division?
Suppose i have a Cobol field of 10 byte. it contains a decimal sign.How to know where is the point location?
what is S04E error in jcl?
11 Answers IBM, L&T,