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
) what is the difference between AID and HANDLE AID?
How you can read the file from bottom?
Define static linking and dynamic linking.
What is the use of intialize verb?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What do you understand by psb and acb?
Which is not true about evaluate statement
Write down the divisions of cobol program?
how to convert the recors form vsam file to db2 table tru file aid
What is link edit in cobol?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
How do u write test cases?
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 report-item in COBOL?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?