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 / uday
Through reference modification we can acheive and it is the
best way.
In Working storage section
01 ws-india pic x(10) value ' I N D I A '
01 ws-india-f pic x(05).
In procedure division
Perform varying ws-i from 1 by 1 until wi-i > 20
If ws-india(ws-i:1) = spaces
continue
Else
move ws-india(ws-i:1)to ws-india-f
End-if
End-perform
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
What is rmode(any) ?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Can a Search can be done on a table with or without Index?
What type of SDLC u followed? Why?
Differentiate between structured cobol programming and object-oriented cobol programming.
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What are the different rules of SORT operation?
Explain how you can characterize tables in cobol?
What is the difference between binary search and sequential search?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What is a scope terminator give example?
What is a report item?
Write a program to explain size error.