write a program to eliminate duplicate records in a input file
and send them to output file.THIS IS IGATE RECENT
QUESTIONN.....JUST 1 WEEK BACKKKK...
Answer Posted / kumarmf2004
Step1. Make sure that the input is sorted on the field
you are validating as duplicates (IN-FIELD in this
case)
Step2. In your program
IF IN-FIELD = HOLD-FIELD
CONTINUE
ELSE
WRITE OUTREC
MOVE IN-FIELD TO HOLD-FIELD
END-IF
READ IN-FILE
Keep performing Step 2 until end of file
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
Name some of the examples of COBOl 11?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What is an in line perform? When would you use it? Anything else you wish to say about it.
how do you reference the variable unblock file formats from cobol programs
For rewrite, why is it mandatory that file needs to be opened?
Have you used comp and comp-3 in your project? And how?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What is cobol?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What is rmode(any) ?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
What is a report item?
What kind of error is trapped by on size error option?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there