write a program to eliminate duplicate records in a input file
and send them to output file.

Answer Posted / naidu sekhar yandrapu

We can use JCL SORT utility using SYSIN DD * SUM fields =
none, will eliminate duplicate and store in a different dataset.


e.g
//SORTXSUM DD DSN=... Output eliminated by the SUM stm

//SYSIN DD *
SORT FIELDS=(1,3,CH,A)
SUM FIELDS=NONE , XSUM
/*

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is difference between cobol and cobol/400

21572


What rules are followed by the search verb.

638


How you can characterize tables in cobol?

723


What is the difference between Global and External Variables?

666


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.

1785






Whats the difference between search & search ALL?

5276


What kind of error is trapped by on size error option?

746


Explain how you can characterize tables in cobol?

644


What is the difference between comp and comp-3 usage?

681


What is the difference between external and global variables in COBOL?

815


How you can read the file from bottom?

660


what is search and searchall?what is the diffrence between them?give an best example?

5563


What is amode(24)?

684


What is the problem of ordered sequential files access?

704


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1908