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
Write a cobol program making use of the redefine clause.
Which Search verb is equivalent to PERFORM…VARYING?
Which is not true about evaluate statement
What are the different rules to perform a Search?
how to access the file from prodution from changeman tool and to submit a file to production
What are 77 levels used for?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
Name some of the examples of COBOl 11?
What are the access modes of START statement?
Can a Search can be done on a table with or without Index?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is the problem of ordered sequential files access?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this