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

Answer Posted / ehatesham

//SORTXSUM DD DSN=datasetname,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(CYL,(1,4),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
.
.
//SYSIN DD *
SORT FIELDS=(1,3,CH,A)
SUM FIELDS=NONE,XSUM
/*

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

5563


how do you reference the variable unblock file formats from cobol programs

748


what are decleratives in cobol?

1827


What is redefines clause in COBOL?

851


How you can read the file from bottom?

660






How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3720


How to remove 2 duplicate records and copy only one using job control language?

753


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2058


What rules are to be followed while using the corresponding options?

641


Discuss about changing dataset name in proc.

763


Write the code implementing the perform … varying.

646


How arrays can be defined in COBOL?

663


What is the difference between structured cobol programming and object alternativelyiented cobol?

755


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

676


In which area will you utilize 88 level items in cobol?

722