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 / jagan

Thanks Mayank .... My answer was not correct. The code what
you mentioned is working properly .. But what in case we
don't know how many spaces (or) delimiters are there in the
string.....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are decleratives in cobol?

1827


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

666


Define cobol?

856


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1920


What is comp-1 and comp-2?

756






how do you reference the rrds file formats from cobol programs

792


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

992


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2101


How can you get the ksds file records into your cobol program?

639


how do you reference the variable unblock file formats from cobol programs

742


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1837


What are literals?

625


Explain how you can characterize tables in cobol?

636


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

670


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

739