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
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What are the different rules to perform a Search?
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.
How do you reference the following file formats from cobol programs?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
Why occurs cannot be used in 01 level in COBOL?
How many sections are there in data division in COBOL?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
how to move the records from file to array table. give with code example
What is the default value(s) for an initialize and what keyword allows for an override of the default?
How arrays can be defined in COBOL?
Why did you choose to work with ibm mainframe cobol programming?
What is the difference between goback, stop run and exit program in cobol?
What are declaratives and what are their uses in cobol?
Discuss about changing dataset name in proc.