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
When is inspect verb is used in cobol?
How many sections are there in data division in COBOL?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
What guidelines should be followed to write a structured cobol prgm?
What is the difference between perform … with test after and perform … with test before?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
How to know whether the module is dynamical or statistical?
Which Search verb is equivalent to PERFORM…VARYING?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
In which area will you utilize 88 level items in cobol?
Difference between array and sub-script ?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is the utilization of copybook in cobol?