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

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

1051


Are you comfortable in cobol or jcl?

794


How many sections are there in data division in COBOL?

875


What is length is cobol?

849


What is the problem of ordered sequential files access?

895






What guidelines should be followed to write a structured cobol prgm?

856


What is the local-storage section?

873


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

894


Why would you use find and get rather than to obtain?

888


what is the use of outrecord?

1959


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17500


what is difference between cobol and cobol/400

22106


What is the default value(s) for an initialize and what keyword allows for an override of the default?

939


What are different data types in cobol?

900


What is the LINKAGE SECTION used in COBOL?

1172