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
what is search and searchall?what is the diffrence between them?give an best example?
how do you reference the variable unblock file formats from cobol programs
what are decleratives in cobol?
What is redefines clause in COBOL?
How you can read the file from bottom?
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.
How to remove 2 duplicate records and copy only one using job control language?
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.
What rules are to be followed while using the corresponding options?
Discuss about changing dataset name in proc.
Write the code implementing the perform … varying.
How arrays can be defined in COBOL?
What is the difference between structured cobol programming and object alternativelyiented cobol?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
In which area will you utilize 88 level items in cobol?