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
How arrays can be defined in COBOL?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
what are decleratives in cobol?
) how do u code after getting data?
Difference between array and sub-script ?
Which Search verb is equivalent to PERFORM…VARYING?
What is report-item in COBOL?
what is search and searchall?what is the diffrence between them?give an best example?
How to print 10 to 1 if the input have only 10 digit number?
What is the utilization of copybook in cobol?
In COBOL, what is the different between index and subscript?
What is an in line perform? When would you use it? Anything else you wish to say about it.
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
IF I mention stop run in CICS what happens?
What do you understand by psb and acb?