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


Please Help Members By Posting Answers For Below Questions

What are literals?

844


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

851


Differentiate between structured cobol programming and object-oriented cobol programming.

828


What is report-item in COBOL?

888


) how do u code after getting data?

1780


what are decleratives in cobol?

1990


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

1057


What is link edit in cobol?

937


Whats the difference between search & search ALL?

5848


What is the difference between perform … with test after and perform … with test before?

1136


What is the compute verb? How is it used?

845


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

6135


What is rmode(24)

893


How to print 10 to 1 if the input have only 10 digit number?

1021


Explain how to differentiate call by context by comparing it to other calls?

895