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 / arpan
Probably you can write SPACES instead of ' ' in the
UNSTRING statement.
UNSTRING WS-NAME DELIMITED BY SPACES
INTO WS-CHAR1, WS-CHAR2, WS-CHAR3, WS-CHAR4, WS-CHAR5.
STRING WS-CHAR1, WS-CHAR2, WS-CHAR3, WS-CHAR4, WS-CHAR5
DELIMITED BY SIZE INTO WS-NAME1.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What are declaratives and what are their uses in cobol?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Difference between cobol and cobol-ii?
What is a report item?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What is amode(24)?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is the difference between perform … with test after and perform … with test before?
Define cobol?
i want a program using by if, evaluate , string, unstring, perform, occurs?
what happens if parmparameter passes zero bytes to the program
what are decleratives in cobol?
A table has two indexes defined. Which one will be used by the SEARCH?