I've one string with spaces ( I N D I A ). My question is I
want remove the spaces & combine in to single string without
space (INDIA).How we can write the cobol program & wich
options we need to use. Please let me know.
Answer Posted / sup
small modification to ans 9th,
If ws-india(ws-i:1) = spaces
continue
Else
move ws-india(ws-i:1)to ws-india-f(i:1)
i=i+1
End-if
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
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.
What is a SSRANGE and NOSSRANGE?
When is inspect verb is used in cobol?
What are different data types in cobol?
What is the difference between perform … with test after and perform … with test before?
how can i see junk values in dclgen or in hostvariable of comp ?
How many bytes S(8) comp field occupy and its maximum value?
How to remove 2 duplicate records and copy only one using job control language?
What is the difference between structured cobol programming and object alternativelyiented cobol?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What are various search techniques in cobol? Explain.
Explain how to differentiate call by context by comparing it to other calls?
Write a program to enter and display the names of students in a class using the occurs clause.
What is difference between static and dynamic call in cobol?