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 / shekh
let me correct u Vaneesh.
we need to check each character. load the string to array & use condition.
perform para until eof
if ws-char (a) = ws-char (a + 1)
continue
else move ws-char (a) to ws-string (b).
define the variables accordingly.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are literals?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Differentiate between structured cobol programming and object-oriented cobol programming.
What is report-item in COBOL?
) how do u code after getting data?
what are decleratives in cobol?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What is link edit in cobol?
Whats the difference between search & search ALL?
What is the difference between perform … with test after and perform … with test before?
What is the compute verb? How is it used?
what is search and searchall?what is the diffrence between them?give an best example?
What is rmode(24)
How to print 10 to 1 if the input have only 10 digit number?
Explain how to differentiate call by context by comparing it to other calls?