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
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
how do you reference the variable block file formats from cobol programs
Give some examples of command terminators?
How do you reference the following file formats from cobol programs?
What is the difference between Call and a Link?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What is rmode(24)
What are the rules of the move verb?
Which is not true about evaluate statement
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
what is the difference between COBOL2 AND COBOL390?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
In COBOL, what is the different between index and subscript?
Name the divisions, which are available in a cobol program?