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 link edit in cobol?
What are the different open modes available in cobol?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
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.
What is the compute verb? How is it used?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Write a program to explain size error.
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
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
How to print 10 to 1 if the input have only 10 digit number?
What is the difference between Global and External Variables?
How do you reference the following file formats from cobol programs?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?