input:-AABBCCDDEFGHIIJ
output:- ABCDEFGHIJ
Here in input we hav the duplicate characters i.e repeating
characters.SO we should eliminate the duplicate characters
and should display the output in ascending order.
Answer Posted / adithya
//job card
//step1 exec pgm=sort
//sortin dd dsn=adi.in
//sortout dd sysout=*
//sysout dd sysout=*
//sysin dd *
sort fields=(1,15,ch,a)
sum fields=none
/*
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What are the cobol coding sheets?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Can we redefine the field of x(200) to less than 200?
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.
how do you reference the ksds vsam file formats from cobol programs
What is difference between static and dynamic call in cobol?
How do you reference the fixed block file formats from cobol programs
What is the compute verb? How is it used?
how to refer the data field?
What are the different open modes available in cobol?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
i need a small 3d program using inline and outline.
how do you reference the rrds file formats from cobol programs
Explain the configuration section of a cobol program with examples of syntax.
what is s000 u4087 error? please give the all error codes in cobol,jcl.