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
Write a program to enter and display the names of students in a class using the occurs clause.
Explain the configuration section of a cobol program with examples of syntax.
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
In which area will you utilize 88 level items in cobol?
How to know whether the module is dynamical or statistical?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Difference between array and sub-script ?
What are the various section in data division and briefly explain them.
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
Name some of the examples of COBOl 11?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)