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 / subbu

We can eliminate the duplicates using sort.

please find the control card for sort.

sort fields = (starting position of field,length of the
field,data type,ascending or descending order)

sum fields=none

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the sections present in data division.

699


How you can characterize tables in cobol?

712


How do you define a variable of comp-1 and comp-2?

701


example for sub strings ? and refernce modifications whit output pls

1845


What is the usage of comp fields in cobol?

656






What is the difference between next sentence and continue in cobol programing language?

708


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

711


What are the different rules of SORT operation?

695


explain sorting techniques in cobol program?

686


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2102


Difference between cobol and cobol-ii?

704


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8156


What are the cobol coding sheets?

662


A table has two indexes defined. Which one will be used by the SEARCH?

757


What are all the divisions of a COBOL program?

662