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
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
i need a small 3d program using inline and outline.
What is rmode(any) ?
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is the usage of comp fields in cobol?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What do you understand by psb and acb?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is the local-storage section?
Why did you choose to work with ibm mainframe cobol programming?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
What is amode(24)?
What are all the divisions of a COBOL program?
i want a program using by if, evaluate , string, unstring, perform, occurs?