How to concatenation one or more string?
Answers were Sorted based on User's Feedback
Answer / nagaraj ramamoorthy
using concatenate operator
e.g string1||strting2||'string3'
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / app
Suppose ther are two strings
string1=Anne
string2=Marrie
The command to concanate above strings is
String string1 delimited by size
string2 delimited by size
into string3
end-string.
string3 would contain-Anne Marrie
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / siri
USING STRING KEY WORD TO CONCATENATE ONE OR MORE STRINGS....
FOR EXAMPLE I WANT TO 'RENU-SHIVA'
WORKING-STORAGE SECTION.
01 NAME1 PIC X(10) VALUE 'RENU'
01 NAME2 PIC X(10) VALUE 'SHIVA'
01 NAME3 PIC X(20)
PROCEDURE DIVISION.
STRING NAME1 DELIMITE BY '' '-' DELIMITED BY SIZE NAME2
DELIMITED BY '' INTO NAME3..
DISPLAY NAME3.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is soc7 abend?how u can trace it?
What is the meaning of 'Eject' verb in cobol?
u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the values u gave in parm ?
how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?
What are declaratives and what are their uses in cobol?
how to resolve the file status 47.......
Can anyone tell me how to handle the array beyond the limit. If we have an array or a table which can handle 5000 records but now we have to compensate 20000 records with the same array? how to handle the situation.
What is the difference between SEARCH and SEARCH ALL?
what is the meaning of pic 9(09)v99-
when COMP-3 is preferrable?
How does IDMS communicate with CICS?
How do you set a return code to the JCL from a COBOL program?