I have a files containing both duplicate and non-duplicate
records.The file is already sorted by a key.I want to
determine those records that are duplicate and records that
are non-duplicate.If duplicate the record is move to a
duplicate file and if non-duplicate that will be move to
valid file.thank you



I have a files containing both duplicate and non-duplicate records.The file is already sorted by a..

Answer / kk

hi,
using sort its possible.
sum fields=none,xsum
matching record present in sortout.
non matching record present in xsum.
another type using file matching concept.

Is This Answer Correct ?    3 Yes 4 No

Post New Answer

More COBOL Interview Questions

What are the various section in data division and briefly explain them.

0 Answers  


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.

0 Answers  


how to submit a jcl by cobol program. clear me with an example.

3 Answers   HCL,


how to know that the file has 300 records how to acess it?

0 Answers   Hewitt, TCS,


record length in spool?

2 Answers   Infosys,






What is the maximum size of a 01 level item in COBOL I? in COBOL II?

2 Answers   IBM, RBS,


I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.

3 Answers   IBM,


perform I from 0 by 1 until I=5?How maney times it will executes

8 Answers  


how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?

2 Answers   TCS,


How do you define a variable of COMP-1? COMP-2?

3 Answers  


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

0 Answers  


How does IDMS communicate with CICS?

1 Answers   Covansys, Satyam,


Categories