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
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
What is the local-storage section?
What is the difference between PIC 9.99 and 9v99 in COBOL?
How you can read the file from bottom?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What the difference is between continue and next sentence?
What is the difference between goback, stop run and exit program in cobol?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What are all the divisions of a COBOL program?
what is the difference between COBOL2 AND COBOL390?
) How do u handle errors in BMS macro
What is the difference between perform … with test after and perform … with test before?
In COBOL programming, what is PERFORM? What is VARYING?
In COBOL, what is the different between index and subscript?