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
what is the use of outrecord?
What are the different data types in cobol?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What is the difference between goback, stop run and exit program in cobol?
What are the pertinent COBOL commands?
What is the difference between binary search and sequential search?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
Write the code to count the sum of n natural numbers.
What are all the divisions of a COBOL program?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
what is s000 u4087 error? please give the all error codes in cobol,jcl.
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
Name some of the examples of COBOl 11?
How do u write test cases?